[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Sat Jan 27 13:10:55 EST 2007
User: gavin
Date: 07/01/27 13:10:55
Modified: src/main/org/jboss/seam/core AbstractMutable.java
Log:
make Home and Query objects extend Controller
Revision Changes Path
1.4 +3 -6 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.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- AbstractMutable.java 25 Jan 2007 20:21:16 -0000 1.3
+++ AbstractMutable.java 27 Jan 2007 18:10:54 -0000 1.4
@@ -23,16 +23,13 @@
*
* @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)
+ protected <T> void setDirty(T oldValue, T newValue)
{
- boolean attributeDirty = oldValue!=newValue && (
+ dirty = dirty || (oldValue!=newValue && (
oldValue==null ||
!oldValue.equals(newValue)
- );
- dirty = dirty || attributeDirty;
- return attributeDirty;
+ ));
}
/**
More information about the jboss-cvs-commits
mailing list