mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 04:23:13 +00:00
[DS-707] Code analysis efficiencies
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5511 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -1582,7 +1582,7 @@ public class Item extends DSpaceObject
|
||||
// Bad DC field, log and throw exception
|
||||
log.warn(LogManager
|
||||
.getHeader(ourContext, "bad_dc",
|
||||
"Bad DC field. schema="+String.valueOf(dcv.schema)
|
||||
"Bad DC field. schema="+dcv.schema
|
||||
+ ", element: \""
|
||||
+ ((dcv.element == null) ? "null"
|
||||
: dcv.element)
|
||||
@@ -2525,8 +2525,7 @@ public class Item extends DSpaceObject
|
||||
"WHERE template_item_id = ?",getID());
|
||||
if (qResult != null)
|
||||
{
|
||||
Collection collection = Collection.find(ourContext,qResult.getIntColumn("collection_id"));
|
||||
return collection;
|
||||
return Collection.find(ourContext,qResult.getIntColumn("collection_id"));
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user