diff --git a/java/src/com/android/inputmethod/keyboard/Keyboard.java b/java/src/com/android/inputmethod/keyboard/Keyboard.java index 19795e764..44c6a4966 100644 --- a/java/src/com/android/inputmethod/keyboard/Keyboard.java +++ b/java/src/com/android/inputmethod/keyboard/Keyboard.java @@ -316,8 +316,8 @@ public class Keyboard { private int mMaxHeightCount = 0; private int mMaxWidthCount = 0; - private final Map mHeightHistogram = new HashMap(); - private final Map mWidthHistogram = new HashMap(); + private final HashMap mHeightHistogram = new HashMap(); + private final HashMap mWidthHistogram = new HashMap(); private void clearHistogram() { mMostCommonKeyHeight = 0; @@ -329,7 +329,8 @@ public class Keyboard { mWidthHistogram.clear(); } - private static int updateHistogramCounter(Map histogram, Integer key) { + private static int updateHistogramCounter(HashMap histogram, + Integer key) { final int count = (histogram.containsKey(key) ? histogram.get(key) : 0) + 1; histogram.put(key, count); return count;