summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dx/src/com/android/dx/command/annotool/Main.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/dx/src/com/android/dx/command/annotool/Main.java b/dx/src/com/android/dx/command/annotool/Main.java
index 14d737329..b05287cbb 100644
--- a/dx/src/com/android/dx/command/annotool/Main.java
+++ b/dx/src/com/android/dx/command/annotool/Main.java
@@ -18,7 +18,7 @@ package com.android.dx.command.annotool;
import java.lang.annotation.ElementType;
import java.util.EnumSet;
-
+import java.util.Locale;
public class Main {
@@ -42,7 +42,7 @@ public class Main {
static class Arguments {
/**
- * from --annotation, dot-seperated classname
+ * from --annotation, dot-separated classname
* of annotation to look for
*/
String aclass;
@@ -75,7 +75,7 @@ public class Main {
try {
for (String p : argParam.split(",")) {
- eTypes.add(ElementType.valueOf(p.toUpperCase()));
+ eTypes.add(ElementType.valueOf(p.toUpperCase(Locale.ROOT)));
}
} catch (IllegalArgumentException ex) {
throw new InvalidArgumentException(
@@ -86,7 +86,7 @@ public class Main {
try {
for (String p : argParam.split(",")) {
- printTypes.add(PrintType.valueOf(p.toUpperCase()));
+ printTypes.add(PrintType.valueOf(p.toUpperCase(Locale.ROOT)));
}
} catch (IllegalArgumentException ex) {
throw new InvalidArgumentException("invalid --print");