[DS-707] Generify List usage

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5602 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2010-10-24 17:37:57 +00:00
parent 77e834038b
commit aa4a35650c
8 changed files with 25 additions and 20 deletions

View File

@@ -39,7 +39,8 @@ package org.dspace.content;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.*;
import java.util.Collection;
import org.apache.log4j.Logger;
import org.dspace.authorize.AuthorizeException;
@@ -363,7 +364,7 @@ public class MetadataValue
* @throws SQLException
* @throws AuthorizeException
*/
public static java.util.Collection findByField(Context context, int fieldId)
public static List<MetadataValue> findByField(Context context, int fieldId)
throws IOException, SQLException, AuthorizeException
{
// Grab rows from DB
@@ -372,7 +373,7 @@ public class MetadataValue
fieldId);
TableRow row = null;
java.util.Collection ret = new ArrayList();
List<MetadataValue> ret = new ArrayList<MetadataValue>();
try
{
while (tri.hasNext())