mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 21:43:11 +00:00
[DS-707] Style / readability fixes
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5579 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -332,7 +332,9 @@ public class MetadataField
|
||||
{
|
||||
// close the TableRowIterator to free up resources
|
||||
if (tri != null)
|
||||
{
|
||||
tri.close();
|
||||
}
|
||||
}
|
||||
|
||||
if (row == null)
|
||||
@@ -372,7 +374,9 @@ public class MetadataField
|
||||
{
|
||||
// close the TableRowIterator to free up resources
|
||||
if (tri != null)
|
||||
{
|
||||
tri.close();
|
||||
}
|
||||
}
|
||||
|
||||
// Convert list into an array
|
||||
@@ -410,7 +414,9 @@ public class MetadataField
|
||||
{
|
||||
// close the TableRowIterator to free up resources
|
||||
if (tri != null)
|
||||
{
|
||||
tri.close();
|
||||
}
|
||||
}
|
||||
|
||||
// Convert list into an array
|
||||
@@ -629,7 +635,9 @@ public class MetadataField
|
||||
// 'sanity check' first.
|
||||
Integer iid = Integer.valueOf(id);
|
||||
if (!id2field.containsKey(iid))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return (MetadataField) id2field.get(iid);
|
||||
}
|
||||
@@ -670,7 +678,9 @@ public class MetadataField
|
||||
{
|
||||
// close the TableRowIterator to free up resources
|
||||
if (tri != null)
|
||||
{
|
||||
tri.close();
|
||||
}
|
||||
}
|
||||
|
||||
id2field = new_id2field;
|
||||
|
Reference in New Issue
Block a user