]> source.dussan.org Git - vaadin-framework.git/commitdiff
#6588 slightly changed based on review
authorLeif Åstrand <leif@vaadin.com>
Tue, 27 Sep 2011 10:22:22 +0000 (10:22 +0000)
committerLeif Åstrand <leif@vaadin.com>
Tue, 27 Sep 2011 10:22:22 +0000 (10:22 +0000)
svn changeset:21339/svn branch:6.7

src/com/vaadin/ui/AbstractTextField.java

index c5f24ea4bb5a3104d3fc4b2106d5b742dd1c19bd..ef0663a157128efec1f1fd9da732b09fabe0bc7a 100644 (file)
@@ -252,8 +252,8 @@ public abstract class AbstractTextField extends AbstractField implements
     @Override
     protected void setValue(Object newValue, boolean repaintIsNotNeeded)
             throws ReadOnlyException, ConversionException {
-        if (isChanged(newValue, getValue())
-                || isChanged(newValue, lastKnownTextContent)) {
+        if (notEqual(newValue, getValue())
+                || notEqual(newValue, lastKnownTextContent)) {
             // The client should use the new value
             localValueChanged = true;
             if (!repaintIsNotNeeded) {
@@ -264,7 +264,7 @@ public abstract class AbstractTextField extends AbstractField implements
         super.setValue(newValue, repaintIsNotNeeded);
     }
 
-    private static boolean isChanged(Object newValue, Object oldValue) {
+    private static boolean notEqual(Object newValue, Object oldValue) {
         return oldValue != newValue
                 && (newValue == null || !newValue.equals(oldValue));
     }