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:
Thomas Neidhart 2013-01-20 21:47:51 +00:00
parent df73c74f88
commit 8aa8f5e67f
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}
/**

View File

@ -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;
}