Findbugs fixes: use e.g. Integer.valueOf instead of new Integer and similar.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1435979 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
df73c74f88
commit
8aa8f5e67f
|
@ -1499,7 +1499,7 @@ public class ExtendedProperties extends Hashtable<String, Object> {
|
|||
* by the key has not a valid number format.
|
||||
*/
|
||||
public long getLong(final String key, final long defaultValue) {
|
||||
return getLong(key, new Long(defaultValue)).longValue();
|
||||
return getLong(key, Long.valueOf(defaultValue)).longValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -181,7 +181,7 @@ public class FixedOrderComparator<T> implements Comparator<T>, Serializable {
|
|||
*/
|
||||
public boolean add(final T obj) {
|
||||
checkLocked();
|
||||
final Integer position = map.put(obj, new Integer(counter++));
|
||||
final Integer position = map.put(obj, Integer.valueOf(counter++));
|
||||
return position == null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue