mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 12:03:09 +00:00
[DS-707] Use valueOf instead of Number constructor
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5500 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -226,11 +226,10 @@ public class IPAuthentication implements AuthenticationMethod
|
||||
if (group != null)
|
||||
{
|
||||
// Add ID so we won't have to do lookup again
|
||||
ipMatcherGroupIDs.put(ipm, new Integer(group
|
||||
.getID()));
|
||||
ipMatcherGroupIDs.put(ipm, Integer.valueOf(group.getID()));
|
||||
ipMatcherGroupNames.remove(ipm);
|
||||
|
||||
groupIDs.add(new Integer(group.getID()));
|
||||
groupIDs.add(Integer.valueOf(group.getID()));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -273,11 +272,10 @@ public class IPAuthentication implements AuthenticationMethod
|
||||
if (group != null)
|
||||
{
|
||||
// Add ID so we won't have to do lookup again
|
||||
ipMatcherGroupIDs.put(ipm, new Integer(group
|
||||
.getID()));
|
||||
ipMatcherGroupIDs.put(ipm, Integer.valueOf(group.getID()));
|
||||
ipMatcherGroupNames.remove(ipm);
|
||||
|
||||
groupIDs.remove(new Integer(group.getID()));
|
||||
groupIDs.remove(Integer.valueOf(group.getID()));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user