diff options
author | Robert Schuster <theBohemian@gmx.net> | 2005-11-30 11:17:49 +0000 |
---|---|---|
committer | Robert Schuster <theBohemian@gmx.net> | 2005-11-30 11:17:49 +0000 |
commit | 27a59366715531bab063c80fd5b660834bb35f39 (patch) | |
tree | 1c98c1463534f8409220e392b21d41676d720d97 | |
parent | 956df62aeebe47f070bb3f5e6632c68e846e1dd9 (diff) | |
download | classpath-27a59366715531bab063c80fd5b660834bb35f39.tar.gz |
Checking the argument is not necessary and in the way it way it was done it
was not right.
2005-11-30 Robert Schuster <robertschuster@fsfe.org>
* java/beans/PropertyChangeSupport.java:
(fireIndexedPropertyChange): Removed argument checking.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/beans/PropertyChangeSupport.java | 4 |
2 files changed, 6 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2005-11-30 Robert Schuster <robertschuster@fsfe.org> + + * java/beans/PropertyChangeSupport.java: + (fireIndexedPropertyChange): Removed argument checking. + 2005-11-30 Jan Roehrich <jan@roehrich.info> * java/awt/datatransfer/SystemFlavorMap.java diff --git a/java/beans/PropertyChangeSupport.java b/java/beans/PropertyChangeSupport.java index da30f994d..1affb70eb 100644 --- a/java/beans/PropertyChangeSupport.java +++ b/java/beans/PropertyChangeSupport.java @@ -408,11 +408,9 @@ public class PropertyChangeSupport implements Serializable public void fireIndexedPropertyChange(String name, int index, Object oldValue, Object newValue) { - // FIXME: should we use equals() here? - if (oldValue == newValue && oldValue != null) + // Argument checking is done in firePropertyChange(PropertyChangeEvent) . firePropertyChange(new IndexedPropertyChangeEvent(source, name, oldValue, newValue, - index)); } /** |