From ca3f9628c157d864e9c273db14bdb38835249838 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 2 Aug 2013 10:34:29 -0700 Subject: [PATCH] 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 --- dx/src/com/android/dx/command/annotool/Main.java | 8 ++++---- 1 file 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"); -- 2.11.0