From e7cfc8ab8853e215b655f2184c47036e117aa8c7 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Thu, 30 Sep 2010 12:41:57 +0900 Subject: [PATCH] Eliminate compiler warning Change-Id: Ib3effaa6f4e8cfc3951ab5d5d099335fd3856a2f --- .../com/android/inputmethod/latin/SharedPreferencesCompat.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/SharedPreferencesCompat.java b/java/src/com/android/inputmethod/latin/SharedPreferencesCompat.java index 8364c90fa..1d36c0b98 100644 --- a/java/src/com/android/inputmethod/latin/SharedPreferencesCompat.java +++ b/java/src/com/android/inputmethod/latin/SharedPreferencesCompat.java @@ -30,8 +30,7 @@ public class SharedPreferencesCompat { private static Method findApplyMethod() { try { - Class cls = SharedPreferences.Editor.class; - return cls.getMethod("apply"); + return SharedPreferences.Editor.class.getMethod("apply"); } catch (NoSuchMethodException unused) { // fall through }