mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-08 15:12:40 +01:00
Remove unnecessary memory allocations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user