commit | cb64d430627b71221c588ef5f23599dd34a89ee9 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Aug 02 10:00:44 2013 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Aug 02 15:12:32 2013 -0700 |
tree | b224300586291ed638185af36a4a25fb6b27efa8 | |
parent | c67b2ed50226c4758d0fc1434d39f6add6a0a533 [diff] |
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
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 @@ 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 @@ 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 &&