mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 12:33:18 +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:
@@ -732,8 +732,7 @@ public class Bitstream extends DSpaceObject
|
||||
"WHERE logo_bitstream_id = ?",getID());
|
||||
if (qResult != null)
|
||||
{
|
||||
Collection collection = Collection.find(bContext,qResult.getIntColumn("collection_id"));
|
||||
return collection;
|
||||
return Collection.find(bContext,qResult.getIntColumn("collection_id"));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -744,8 +743,7 @@ public class Bitstream extends DSpaceObject
|
||||
|
||||
if (qResult != null)
|
||||
{
|
||||
Community community = Community.find(bContext,qResult.getIntColumn("community_id"));
|
||||
return community;
|
||||
return Community.find(bContext,qResult.getIntColumn("community_id"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user