diff options
Diffstat (limited to 'host')
-rw-r--r-- | host/migration/src/AdbCommand.java | 2 | ||||
-rw-r--r-- | host/migration/src/InsertCommand.java | 2 | ||||
-rw-r--r-- | host/migration/src/QueryCommand.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/host/migration/src/AdbCommand.java b/host/migration/src/AdbCommand.java index 54cdb7b7..bdc54640 100644 --- a/host/migration/src/AdbCommand.java +++ b/host/migration/src/AdbCommand.java @@ -54,7 +54,7 @@ public class AdbCommand extends Command { List<String> commandList = new ArrayList<String>( baseCommand.length + 1); commandList.addAll(Arrays.asList(baseCommand)); - String[] commands = commandList.toArray(new String[commandList.size()]); + String[] commands = commandList.toArray(new String[0]); if (MigrationTest.DEBUG) { System.out.println("Using commands: " + Arrays.toString(commands)); diff --git a/host/migration/src/InsertCommand.java b/host/migration/src/InsertCommand.java index 0e435570..db2acd09 100644 --- a/host/migration/src/InsertCommand.java +++ b/host/migration/src/InsertCommand.java @@ -59,7 +59,7 @@ public class InsertCommand extends Command { commandList.add("--bind name:" + setting.getKeyType() + ":" + setting.getKey()); commandList.add("--bind value:" + setting.getValueType() + ":" + "\"" + setting.getValue() + "\""); - commands = commandList.toArray(new String[commandList.size()]); + commands = commandList.toArray(new String[0]); if (MigrationTest.DEBUG) { System.out.println("Using commands: " + Arrays.toString(commands)); } diff --git a/host/migration/src/QueryCommand.java b/host/migration/src/QueryCommand.java index 6d5c1dc8..69be0b21 100644 --- a/host/migration/src/QueryCommand.java +++ b/host/migration/src/QueryCommand.java @@ -63,7 +63,7 @@ public class QueryCommand extends Command { commandList.add(PROJECTION); commandList.add("--show-type"); //this is totally awesomely lineage specific commandList.add("true"); - commands = commandList.toArray(new String[commandList.size()]); + commands = commandList.toArray(new String[0]); if (MigrationTest.DEBUG) { System.out.println("Using commands: " + Arrays.toString(commands)); } |