Author: konstantin.mishin
Date: 2010-12-10 11:14:34 -0500 (Fri, 10 Dec 2010)
New Revision: 20500
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/context/FileUploadPartialViewContextFactory.java
trunk/ui/input/ui/src/main/java/org/richfaces/request/FileParam.java
Log:
small code cleanup
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/context/FileUploadPartialViewContextFactory.java
===================================================================
---
trunk/ui/input/ui/src/main/java/org/richfaces/context/FileUploadPartialViewContextFactory.java 2010-12-10
15:30:40 UTC (rev 20499)
+++
trunk/ui/input/ui/src/main/java/org/richfaces/context/FileUploadPartialViewContextFactory.java 2010-12-10
16:14:34 UTC (rev 20500)
@@ -112,7 +112,7 @@
//So we should use PartialViewContext.processPartial
instead of.
}
}
- };
+ }
//TODO This method can be removed from here when
PartialViewContextWrapper will implement it.
@Override
Modified: trunk/ui/input/ui/src/main/java/org/richfaces/request/FileParam.java
===================================================================
--- trunk/ui/input/ui/src/main/java/org/richfaces/request/FileParam.java 2010-12-10
15:30:40 UTC (rev 20499)
+++ trunk/ui/input/ui/src/main/java/org/richfaces/request/FileParam.java 2010-12-10
16:14:34 UTC (rev 20500)
@@ -86,7 +86,7 @@
if (tempFilesDirectory != null) {
dir = new File(tempFilesDirectory);
}
- tempFile = File.createTempFile(UUID.randomUUID().toString(),
".upload", dir);
+ tempFile = File.createTempFile("richfaces_uploaded_file_", null,
dir);
tempFile.deleteOnExit();
fOut = new FileOutputStream(tempFile);
} catch (IOException ex) {
Show replies by date