[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:
Graham Triggs
2010-10-19 16:41:09 +00:00
parent e1c120a439
commit 2a330a00c9
4 changed files with 9 additions and 9 deletions

View File

@@ -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()]);
}
/**