replaced StringBuffer with StringBuilder

master
melvin 2011-09-03 15:16:46 +08:00
parent c5bb97d98b
commit 6d791a2e26
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class MagicCardChoiceResult extends ArrayList<MagicCard> implements Magic
@Override @Override
public String toString() { public String toString() {
final StringBuffer buffer=new StringBuffer(); final StringBuilder buffer=new StringBuilder();
for (final MagicCard card : this) { for (final MagicCard card : this) {
if (buffer.length()>0) { if (buffer.length()>0) {
buffer.append(", "); buffer.append(", ");

View File

@ -47,7 +47,7 @@ public class MagicExcludeResult implements MagicMappable {
@Override @Override
public String toString() { public String toString() {
final StringBuffer buffer=new StringBuffer(); final StringBuilder buffer=new StringBuilder();
for (int index=0,flag=1;index<excludePermanents.size();index++,flag<<=1) { for (int index=0,flag=1;index<excludePermanents.size();index++,flag<<=1) {
if (buffer.length()>0) { if (buffer.length()>0) {
buffer.append(", "); buffer.append(", ");