summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-09-27 10:22:22 +0000
committerLeif Åstrand <leif@vaadin.com>2011-09-27 10:22:22 +0000
commit18cefe8219ca8aa203e857d380de76c231bc7b51 (patch)
treec877a989fb4c57452ef14779891e15396a49824e
parent4a323fb560b832159d6474e1e056eaee35f6066b (diff)
downloadvaadin-framework-18cefe8219ca8aa203e857d380de76c231bc7b51.tar.gz
vaadin-framework-18cefe8219ca8aa203e857d380de76c231bc7b51.zip
#6588 slightly changed based on review
svn changeset:21339/svn branch:6.7
-rw-r--r--src/com/vaadin/ui/AbstractTextField.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/vaadin/ui/AbstractTextField.java b/src/com/vaadin/ui/AbstractTextField.java
index c5f24ea4bb..ef0663a157 100644
--- a/src/com/vaadin/ui/AbstractTextField.java
+++ b/src/com/vaadin/ui/AbstractTextField.java
@@ -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));
}