summaryrefslogtreecommitdiffstats
path: root/tools/dalvik_jtreg/java/dalvik/jtreg/Command.java
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dalvik_jtreg/java/dalvik/jtreg/Command.java')
-rw-r--r--tools/dalvik_jtreg/java/dalvik/jtreg/Command.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/tools/dalvik_jtreg/java/dalvik/jtreg/Command.java b/tools/dalvik_jtreg/java/dalvik/jtreg/Command.java
index 5558ced..fb644bf 100644
--- a/tools/dalvik_jtreg/java/dalvik/jtreg/Command.java
+++ b/tools/dalvik_jtreg/java/dalvik/jtreg/Command.java
@@ -47,21 +47,7 @@ final class Command {
}
static String path(Object[] objects) {
- StringBuilder result = new StringBuilder();
- result.append(objects[0]);
- for (int i = 1; i < objects.length; i++) {
- result.append(":").append(objects[i]);
- }
- return result.toString();
- }
-
- static String[] objectsToStrings(Object[] objects) {
- String[] result = new String[objects.length];
- int i = 0;
- for (Object o : objects) {
- result[i++] = o.toString();
- }
- return result;
+ return Strings.join(objects, ":");
}
static class Builder {