forked from External/mage
All 1-character strings converted to primitives
"b" + "r" now changed to 'b' + 'w'. It's more straight-forward, and may cause perfomance improvements - character primitives allocation is faster and less expensive than string creation.
This commit is contained in:
parent
31589778ca
commit
f60ebfbb1f
451 changed files with 989 additions and 978 deletions
|
|
@ -58,7 +58,7 @@ public class RemoveVariableCountersTargetCost extends VariableCostImpl {
|
|||
}
|
||||
|
||||
public RemoveVariableCountersTargetCost(FilterPermanent filter, CounterType counterTypeToRemove, String xText, int minValue) {
|
||||
super(xText, new StringBuilder(counterTypeToRemove != null ? counterTypeToRemove.getName() + " ":"").append("counters to remove").toString());
|
||||
super(xText, new StringBuilder(counterTypeToRemove != null ? counterTypeToRemove.getName() + ' ' :"").append("counters to remove").toString());
|
||||
this.filter = filter;
|
||||
this.counterTypeToRemove = counterTypeToRemove;
|
||||
this.text = setText();
|
||||
|
|
@ -79,7 +79,7 @@ public class RemoveVariableCountersTargetCost extends VariableCostImpl {
|
|||
private String setText() {
|
||||
StringBuilder sb = new StringBuilder("Remove ").append(xText);
|
||||
if (counterTypeToRemove != null) {
|
||||
sb.append(" ").append(counterTypeToRemove.getName());
|
||||
sb.append(' ').append(counterTypeToRemove.getName());
|
||||
}
|
||||
sb.append(" counters from among ").append(filter.getMessage());
|
||||
return sb.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue