[jboss-cvs] jboss-seam/ui/src/main/java/org/jboss/seam/ui/graphicImage ...
Shane Bryzak
sbryzak at redhat.com
Sun Aug 5 23:27:48 EDT 2007
User: sbryzak2
Date: 07/08/05 23:27:48
Modified: ui/src/main/java/org/jboss/seam/ui/graphicImage
GraphicImageStore.java
Log:
JBSEAM-1607
Revision Changes Path
1.6 +2 -5 jboss-seam/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageStore.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: GraphicImageStore.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageStore.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- GraphicImageStore.java 18 Jul 2007 17:28:48 -0000 1.5
+++ GraphicImageStore.java 6 Aug 2007 03:27:48 -0000 1.6
@@ -1,6 +1,7 @@
package org.jboss.seam.ui.graphicImage;
import java.io.Serializable;
+import java.rmi.server.UID;
import java.util.HashMap;
import java.util.Map;
@@ -20,7 +21,6 @@
@BypassInterceptors
public class GraphicImageStore extends AbstractMutable implements Serializable
{
-
private Log log = Logging.getLog(GraphicImageStore.class);
public static class ImageWrapper implements Serializable
@@ -49,8 +49,6 @@
private Map<String, ImageWrapper> store = new HashMap<String, ImageWrapper>();
- private int index = 0;
-
/**
* Put a image into the store
* @param image
@@ -71,8 +69,7 @@
{
if (key == null)
{
- key = "org.jboss.seam.ui.GraphicImageStore." + index;
- index++;
+ key = "org.jboss.seam.ui.GraphicImageStore." + new UID().toString().replace(":", "-");
}
store.put(key, image);
setDirty();
More information about the jboss-cvs-commits
mailing list