Update of /var/cvs/src/org/mmbase/module/core
In directory james.mmbase.org:/tmp/cvs-serv12597

Modified Files:
        MMObjectNode.java 
Log Message:
made the 'changed' map explicitley unmodifiable


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/module/core


Index: MMObjectNode.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/module/core/MMObjectNode.java,v
retrieving revision 1.223
retrieving revision 1.224
diff -u -b -r1.223 -r1.224
--- MMObjectNode.java   8 Jul 2008 07:37:10 -0000       1.223
+++ MMObjectNode.java   28 Jul 2008 16:11:32 -0000      1.224
@@ -38,7 +38,7 @@
  * @author Eduard Witteveen
  * @author Michiel Meeuwissen
  * @author Ernst Bunders
- * @version $Id: MMObjectNode.java,v 1.223 2008/07/08 07:37:10 michiel Exp $
+ * @version $Id: MMObjectNode.java,v 1.224 2008/07/28 16:11:32 michiel Exp $
  */
 
 public class MMObjectNode implements org.mmbase.util.SizeMeasurable, 
java.io.Serializable { // Comparable<MMObjectNode>  {
@@ -1126,10 +1126,10 @@
     /**
      * Return the names of all persistent fields that were changed.
      * Note that this is a direct reference. Changes (i.e. clearing the 
vector) will affect the node's status.
-     * @return A Set containing Strings. The set is modifiable, and 
synchronized. Don't modify it though.
+     * @return An unmodifiable Set containing Strings.
      */
     public Set<String> getChanged() {
-        return changed;
+        return Collections.unmodifiableSet(changed);
     }
 
     /**
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to