mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 21:43:11 +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:
@@ -626,7 +626,7 @@ public class MetadataField
|
||||
}
|
||||
|
||||
// 'sanity check' first.
|
||||
Integer iid = new Integer(id);
|
||||
Integer iid = Integer.valueOf(id);
|
||||
if (!id2field.containsKey(iid))
|
||||
return null;
|
||||
|
||||
@@ -662,7 +662,7 @@ public class MetadataField
|
||||
{
|
||||
TableRow row = tri.next();
|
||||
int fieldID = row.getIntColumn("metadata_field_id");
|
||||
new_id2field.put(new Integer(fieldID), new MetadataField(row));
|
||||
new_id2field.put(Integer.valueOf(fieldID), new MetadataField(row));
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
Reference in New Issue
Block a user