removed commented code
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@171889 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a7f03e20a7
commit
48ee0a7211
|
@ -468,9 +468,7 @@ public class WorkspaceUploadServletStream extends HttpServlet implements Servlet
|
|||
}
|
||||
|
||||
final WorkspaceFolder destinationFolder = (WorkspaceFolder) item;
|
||||
// File tmpFile = null;
|
||||
// FileInputStream fis = null;
|
||||
// BufferedInputStream bis = null;
|
||||
|
||||
try {
|
||||
//Removing path from fileName
|
||||
String itemName = fileName;
|
||||
|
@ -552,7 +550,6 @@ public class WorkspaceUploadServletStream extends HttpServlet implements Servlet
|
|||
throw new Exception("Error when creating uploader, it is null!");
|
||||
|
||||
sendMessage(response, workspaceUploader.getIdentifier());
|
||||
|
||||
}
|
||||
|
||||
} catch (InsufficientPrivilegesException e) {
|
||||
|
@ -584,18 +581,6 @@ public class WorkspaceUploadServletStream extends HttpServlet implements Servlet
|
|||
// return;
|
||||
}finally{
|
||||
removeCurrentListener(request.getSession(), clientUploadKey);
|
||||
|
||||
// try{
|
||||
// if(fis!=null)
|
||||
// fis.close();
|
||||
// if (bis!=null)
|
||||
// bis.close();
|
||||
// if(tmpFile!=null && tmpFile.exists())
|
||||
// tmpFile.delete();
|
||||
// }catch(Exception e){
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue