mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Avoid using interface member, use concrete collection class instead
Change-Id: I8b647e8c260aec58c557ce07f3a2d8987c24d7be
This commit is contained in:
parent
e1a91d0b26
commit
ce96959518
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user