summaryrefslogtreecommitdiffstats
path: root/dx
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-08-02 10:34:29 -0700
committerElliott Hughes <enh@google.com>2013-08-02 10:34:29 -0700
commitca3f9628c157d864e9c273db14bdb38835249838 (patch)
tree36756daad0525fb5c7d2581e430e2a8def52902b /dx
parentf65d478a7005230264596f4814c94a0a9571259f (diff)
downloadandroid_dalvik-ca3f9628c157d864e9c273db14bdb38835249838.tar.gz
android_dalvik-ca3f9628c157d864e9c273db14bdb38835249838.tar.bz2
android_dalvik-ca3f9628c157d864e9c273db14bdb38835249838.zip
If dalvik wants ASCII casing, it needs to ask for it.
http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html Bug: https://code.google.com/p/android/issues/detail?id=58359 Change-Id: I1601cda215ebc5995117323e40a684ad352fe733
Diffstat (limited to 'dx')
-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");