[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Thu Jan 25 15:21:17 EST 2007
User: gavin
Date: 07/01/25 15:21:17
Modified: src/main/org/jboss/seam/core AbstractMutable.java
Log:
semantics
Revision Changes Path
1.3 +4 -3 jboss-seam/src/main/org/jboss/seam/core/AbstractMutable.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AbstractMutable.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/AbstractMutable.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- AbstractMutable.java 25 Jan 2007 18:53:55 -0000 1.2
+++ AbstractMutable.java 25 Jan 2007 20:21:16 -0000 1.3
@@ -23,15 +23,16 @@
*
* @param oldValue the old value of an attribute
* @param newValue the new value of an attribute
+ * @return true if the newValue is not equal to the oldValue
*/
protected <T> boolean setDirty(T oldValue, T newValue)
{
- boolean reallyDirty = oldValue!=newValue && (
+ boolean attributeDirty = oldValue!=newValue && (
oldValue==null ||
!oldValue.equals(newValue)
);
- dirty = dirty || reallyDirty;
- return reallyDirty;
+ dirty = dirty || attributeDirty;
+ return attributeDirty;
}
/**
More information about the jboss-cvs-commits
mailing list