From cb64d430627b71221c588ef5f23599dd34a89ee9 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 2 Aug 2013 10:00:44 -0700 Subject: 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 --- core/java/android/util/DebugUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/java/android/util') 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; /** *

Various utilities for debugging and logging.

@@ -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 && -- cgit v1.1