mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 20:43: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
|
// Step 2 -- find list of all content files from manifest
|
||||||
// Loop through these files, and add them one by one to Item
|
// 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;
|
boolean setPrimaryBitstream = false;
|
||||||
BitstreamFormat unknownFormat = BitstreamFormat.findUnknown(context);
|
BitstreamFormat unknownFormat = BitstreamFormat.findUnknown(context);
|
||||||
@@ -874,8 +875,8 @@ public abstract class AbstractMETSIngester extends AbstractPackageIngester
|
|||||||
String logoID = logoRef.getAttributeValue("ID");
|
String logoID = logoRef.getAttributeValue("ID");
|
||||||
|
|
||||||
// Loop through manifest content files to find actual logo file
|
// Loop through manifest content files to find actual logo file
|
||||||
for (Iterator<Element> mi = manifest.getContentFiles().iterator(); mi
|
for (Iterator<Element> mi = (Iterator<Element>) manifest
|
||||||
.hasNext();)
|
.getContentFiles().iterator(); mi.hasNext();)
|
||||||
{
|
{
|
||||||
Element mfile = mi.next();
|
Element mfile = mi.next();
|
||||||
if (logoID.equals(mfile.getAttributeValue("ID")))
|
if (logoID.equals(mfile.getAttributeValue("ID")))
|
||||||
|
@@ -52,7 +52,6 @@ import org.dspace.content.DSpaceObject;
|
|||||||
import org.dspace.content.crosswalk.CrosswalkException;
|
import org.dspace.content.crosswalk.CrosswalkException;
|
||||||
import org.dspace.core.Context;
|
import org.dspace.core.Context;
|
||||||
import org.dspace.eperson.EPerson;
|
import org.dspace.eperson.EPerson;
|
||||||
import org.dspace.eperson.EPersonDeletionException;
|
|
||||||
import org.dspace.eperson.Group;
|
import org.dspace.eperson.Group;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
Reference in New Issue
Block a user