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;
|
inQuote = !inQuote;
|
||||||
if (!inQuote) {
|
if (!inQuote) {
|
||||||
cmdList.add(sb.toString());
|
cmdList.add(sb.toString());
|
||||||
sb = new StringBuilder();
|
sb.setLength(0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '\\':
|
case '\\':
|
||||||
|
@ -131,7 +131,7 @@ public class PortListener {
|
||||||
if (!inQuote) {
|
if (!inQuote) {
|
||||||
if (!sb.toString().isEmpty()) {
|
if (!sb.toString().isEmpty()) {
|
||||||
cmdList.add(sb.toString());
|
cmdList.add(sb.toString());
|
||||||
sb = new StringBuilder();
|
sb.setLength(0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user