Minor cleanup

Change-Id: I4488f4f1c47dda1a67f0fda4daa2a50962f4638b
This commit is contained in:
mpeters 2011-07-14 12:58:03 +02:00
parent 70254c6bc8
commit 9f5c496c3d
2 changed files with 3 additions and 2 deletions
src/main/java/se/su/dsv/scipro/repository

@ -115,8 +115,10 @@ public class FileOpenLink extends ResourceLink<Void> {
in = fileRepository.retrieveFileByIdentifier(fileDesc.getIdentifier());
return in;
}
@Override
public void close() throws IOException {
in.close();
if( in != null )
in.close();
}
@Override
public long length(){

@ -33,7 +33,6 @@ public class RepositoryDownloadPage extends WebPage {
failAndRedirect();
String uuid = pp.getString(PP_KEY);
//System.out.println("Attempting to download:"+uuid);
try{
FileDescription fd = fileRepository.retrieveFileDescriptionByIdentifier(uuid);
IResourceStream stream = fileRepository.getFileStream(fd);