aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-03-13 22:20:34 +0900
committerTadashi G. Takaoka <takaoka@google.com>2012-03-13 22:20:34 +0900
commitce96959518bcc3accf30e2149c898ef9eec9c74c (patch)
tree627d35206639b7067b81e549ab33b1dc51000bed /java/src/com
parente1a91d0b262c59e4c0f1fe20c9c8a8cbb403e99e (diff)
downloadlatinime-ce96959518bcc3accf30e2149c898ef9eec9c74c.tar.gz
latinime-ce96959518bcc3accf30e2149c898ef9eec9c74c.tar.xz
latinime-ce96959518bcc3accf30e2149c898ef9eec9c74c.zip
Avoid using interface member, use concrete collection class instead
Change-Id: I8b647e8c260aec58c557ce07f3a2d8987c24d7be
Diffstat (limited to 'java/src/com')
-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 a726878c2..100550512 100644
--- a/java/src/com/android/inputmethod/keyboard/Keyboard.java
+++ b/java/src/com/android/inputmethod/keyboard/Keyboard.java
@@ -309,8 +309,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;
@@ -322,7 +322,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;