diff options
Diffstat (limited to 'libjava/javax/swing/event/SwingPropertyChangeSupport.java')
-rw-r--r-- | libjava/javax/swing/event/SwingPropertyChangeSupport.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libjava/javax/swing/event/SwingPropertyChangeSupport.java b/libjava/javax/swing/event/SwingPropertyChangeSupport.java index 1f08cbf..b2c6a4e 100644 --- a/libjava/javax/swing/event/SwingPropertyChangeSupport.java +++ b/libjava/javax/swing/event/SwingPropertyChangeSupport.java @@ -210,8 +210,9 @@ public final class SwingPropertyChangeSupport PropertyChangeListener listener; // Check Values if they are equal - if (event.getOldValue() == null || event.getNewValue() == null || - event.getOldValue().equals(event.getNewValue()) == true) { + if (event.getOldValue() == null && event.getNewValue() == null || + (event.getOldValue() != null && event.getNewValue() != null && + event.getOldValue().equals(event.getNewValue()))) { return; } // if |