mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 12:33:18 +00:00
Tidy imports, type safety.
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5328 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -715,7 +715,8 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
|
||||
|
||||
// Step 2 -- find list of all content files from manifest
|
||||
// Loop through these files, and add them one by one to Item
|
||||
List<Element> manifestContentFiles = manifest.getContentFiles();
|
||||
List<Element> manifestContentFiles = (List<Element>) manifest
|
||||
.getContentFiles();
|
||||
|
||||
boolean setPrimaryBitstream = false;
|
||||
BitstreamFormat unknownFormat = BitstreamFormat.findUnknown(context);
|
||||
@@ -874,8 +875,8 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
|
||||
String logoID = logoRef.getAttributeValue("ID");
|
||||
|
||||
// Loop through manifest content files to find actual logo file
|
||||
for (Iterator<Element> mi = manifest.getContentFiles().iterator(); mi
|
||||
.hasNext();)
|
||||
for (Iterator<Element> mi = (Iterator<Element>) manifest
|
||||
.getContentFiles().iterator(); mi.hasNext();)
|
||||
{
|
||||
Element mfile = mi.next();
|
||||
if (logoID.equals(mfile.getAttributeValue("ID")))
|
||||
|
@@ -52,7 +52,6 @@ import org.dspace.content.DSpaceObject;
|
||||
import org.dspace.content.crosswalk.CrosswalkException;
|
||||
import org.dspace.core.Context;
|
||||
import org.dspace.eperson.EPerson;
|
||||
import org.dspace.eperson.EPersonDeletionException;
|
||||
import org.dspace.eperson.Group;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
Reference in New Issue
Block a user