stringbuilder in logger

This commit is contained in:
Florian Steurer 2016-04-21 20:26:33 +02:00
parent 1a32ea9ce9
commit b8415b122b

View File

@ -127,11 +127,11 @@ class LogHistory extends ArrayList<LogLine>{
@Override
public String toString(){
String ret = "";
StringBuilder ret = new StringBuilder();
for(LogLine l : this){
ret += l.toString() + "\n";
ret.append(l.toString() + "\n");
}
return ret;
return ret.toString();
}
}