Author: ilya_shaikovsky
Date: 2009-04-10 08:12:17 -0400 (Fri, 10 Apr 2009)
New Revision: 13490
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/fileUpload/FileUploadBean.java
Log:
unnesessary synchronized removed.
Modified:
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/fileUpload/FileUploadBean.java
===================================================================
---
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/fileUpload/FileUploadBean.java 2009-04-10
11:21:01 UTC (rev 13489)
+++
trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/fileUpload/FileUploadBean.java 2009-04-10
12:12:17 UTC (rev 13490)
@@ -32,10 +32,10 @@
public FileUploadBean() {
}
- public synchronized void paint(OutputStream stream, Object object) throws IOException {
+ public void paint(OutputStream stream, Object object) throws IOException {
stream.write(getFiles().get((Integer)object).getData());
}
- public synchronized void listener(UploadEvent event) throws Exception{
+ public void listener(UploadEvent event) throws Exception{
UploadItem item = event.getUploadItem();
File file = new File();
file.setLength(item.getData().length);
@@ -43,8 +43,8 @@
file.setData(item.getData());
files.add(file);
uploadsAvailable--;
- }
-
+ }
+
public String clearUploadData() {
files.clear();
setUploadsAvailable(5);
Show replies by date