Use explicit boxing/unboxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1023767 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c41056bff9
commit
342ac1462c
|
@ -87,7 +87,7 @@ public class CollectionUtils {
|
|||
private final int getFreq(final Object obj, final Map<?, Integer> freqMap) {
|
||||
Integer count = freqMap.get(obj);
|
||||
if (count != null) {
|
||||
return count;
|
||||
return count.intValue();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
@ -293,9 +293,9 @@ public class CollectionUtils {
|
|||
for (O obj : coll) {
|
||||
Integer c = count.get(obj);
|
||||
if (c == null) {
|
||||
count.put(obj, 1);
|
||||
count.put(obj, Integer.valueOf(1));
|
||||
} else {
|
||||
count.put(obj, c + 1);
|
||||
count.put(obj, Integer.valueOf(c.intValue() + 1));
|
||||
}
|
||||
}
|
||||
return count;
|
||||
|
|
Loading…
Reference in New Issue