aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-03-13 06:25:39 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-13 06:25:39 -0700
commit82793f2f85ed9087c2466d88e47e69fcb2b190be (patch)
tree75a6c3c84562e591299a9bab35a3f535dcd73d0f /java
parent0bd4699f9c7bcb486a4a3a69010681e6da5ec3a3 (diff)
parentce96959518bcc3accf30e2149c898ef9eec9c74c (diff)
downloadlatinime-82793f2f85ed9087c2466d88e47e69fcb2b190be.tar.gz
latinime-82793f2f85ed9087c2466d88e47e69fcb2b190be.tar.xz
latinime-82793f2f85ed9087c2466d88e47e69fcb2b190be.zip
Merge "Avoid using interface member, use concrete collection class instead"
Diffstat (limited to 'java')
-rw-r--r--java/src/com/android/inputmethod/keyboard/Keyboard.java7
1 files changed, 4 insertions, 3 deletions
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<Integer, Integer> mHeightHistogram = new HashMap<Integer, Integer>();
- private final Map<Integer, Integer> mWidthHistogram = new HashMap<Integer, Integer>();
+ private final HashMap<Integer, Integer> mHeightHistogram = new HashMap<Integer, Integer>();
+ private final HashMap<Integer, Integer> mWidthHistogram = new HashMap<Integer, Integer>();
private void clearHistogram() {
mMostCommonKeyHeight = 0;
@@ -329,7 +329,8 @@ public class Keyboard {
mWidthHistogram.clear();
}
- private static int updateHistogramCounter(Map<Integer, Integer> histogram, Integer key) {
+ private static int updateHistogramCounter(HashMap<Integer, Integer> histogram,
+ Integer key) {
final int count = (histogram.containsKey(key) ? histogram.get(key) : 0) + 1;
histogram.put(key, count);
return count;