mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
[DS-707] Fix array construction
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5463 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -428,7 +428,7 @@ public class Group extends DSpaceObject
|
||||
groupList.add(Group.find(c, (i.next()).intValue()));
|
||||
}
|
||||
|
||||
return (Group[]) groupList.toArray(new Group[0]);
|
||||
return groupList.toArray(new Group[groupList.size()]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -566,7 +566,7 @@ public class Group extends DSpaceObject
|
||||
epersonList.add(EPerson.find(c, (i.next()).intValue()));
|
||||
}
|
||||
|
||||
return (EPerson[]) epersonList.toArray(new EPerson[0]);
|
||||
return epersonList.toArray(new EPerson[epersonList.size()]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user