mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 04:53:16 +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:
@@ -541,7 +541,7 @@ public class MetadataSchema
|
||||
initCache(context);
|
||||
}
|
||||
|
||||
Integer iid = new Integer(id);
|
||||
Integer iid = Integer.valueOf(id);
|
||||
|
||||
// sanity check
|
||||
if (!id2schema.containsKey(iid))
|
||||
@@ -609,7 +609,7 @@ public class MetadataSchema
|
||||
TableRow row = tri.next();
|
||||
|
||||
MetadataSchema s = new MetadataSchema(row);
|
||||
new_id2schema.put(new Integer(s.schemaID), s);
|
||||
new_id2schema.put(Integer.valueOf(s.schemaID), s);
|
||||
new_name2schema.put(s.name, s);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user