Minor cleanup
Change-Id: I4488f4f1c47dda1a67f0fda4daa2a50962f4638b
This commit is contained in:
parent
70254c6bc8
commit
9f5c496c3d
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user