mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 06:10:28 +01:00
Remove unnecessary memory allocations
This commit is contained in:
parent
f534754f10
commit
dfaa220946
|
@ -117,7 +117,7 @@ public class PortListener {
|
|||
inQuote = !inQuote;
|
||||
if (!inQuote) {
|
||||
cmdList.add(sb.toString());
|
||||
sb = new StringBuilder();
|
||||
sb.setLength(0);
|
||||
}
|
||||
break;
|
||||
case '\\':
|
||||
|
@ -131,7 +131,7 @@ public class PortListener {
|
|||
if (!inQuote) {
|
||||
if (!sb.toString().isEmpty()) {
|
||||
cmdList.add(sb.toString());
|
||||
sb = new StringBuilder();
|
||||
sb.setLength(0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user