summaryrefslogtreecommitdiffstats
path: root/core/java/android/util
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-08-02 10:00:44 -0700
committerElliott Hughes <enh@google.com>2013-08-02 15:12:32 -0700
commitcb64d430627b71221c588ef5f23599dd34a89ee9 (patch)
treeb224300586291ed638185af36a4a25fb6b27efa8 /core/java/android/util
parentc67b2ed50226c4758d0fc1434d39f6add6a0a533 (diff)
downloadframeworks_base-cb64d430627b71221c588ef5f23599dd34a89ee9.zip
frameworks_base-cb64d430627b71221c588ef5f23599dd34a89ee9.tar.gz
frameworks_base-cb64d430627b71221c588ef5f23599dd34a89ee9.tar.bz2
If frameworks wants ASCII casing, it should explicity 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: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4
Diffstat (limited to 'core/java/android/util')
-rw-r--r--core/java/android/util/DebugUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/util/DebugUtils.java b/core/java/android/util/DebugUtils.java
index 7e3c855..f607207 100644
--- a/core/java/android/util/DebugUtils.java
+++ b/core/java/android/util/DebugUtils.java
@@ -18,6 +18,7 @@ package android.util;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
+import java.util.Locale;
/**
* <p>Various utilities for debugging and logging.</p>
@@ -78,7 +79,7 @@ public class DebugUtils {
Class<?> parent = klass;
do {
declaredMethod = parent.getDeclaredMethod("get" +
- pair[0].substring(0, 1).toUpperCase() +
+ pair[0].substring(0, 1).toUpperCase(Locale.ROOT) +
pair[0].substring(1),
(Class[]) null);
} while ((parent = klass.getSuperclass()) != null &&