[DS-707] Replace inefficient boxed primitive construction.

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5485 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Mark Wood
2010-10-20 14:56:20 +00:00
parent 42b03b1e90
commit 102613378e
2 changed files with 2 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ public class MetadataExporter
private static String getSchemaName(Context context, MetadataField mdField) throws SQLException, RegistryExportException
{
// Get name from cache
String name = schemaMap.get(new Integer(mdField.getSchemaID()));
String name = schemaMap.get(Integer.valueOf(mdField.getSchemaID()));
if (name == null)
{

View File

@@ -194,7 +194,7 @@ public class RegistryLoader
int supportLevel = Integer.parseInt(supportLevelString);
String internalString = getElementData(node, "internal");
boolean internal = new Boolean(internalString).booleanValue();
boolean internal = Boolean.valueOf(internalString).booleanValue();
String[] extensions = getRepeatedElementData(node, "extension");