summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRobert Schuster <theBohemian@gmx.net>2005-11-30 11:17:49 +0000
committerRobert Schuster <theBohemian@gmx.net>2005-11-30 11:17:49 +0000
commit27a59366715531bab063c80fd5b660834bb35f39 (patch)
tree1c98c1463534f8409220e392b21d41676d720d97 /java
parent956df62aeebe47f070bb3f5e6632c68e846e1dd9 (diff)
downloadclasspath-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.
Diffstat (limited to 'java')
-rw-r--r--java/beans/PropertyChangeSupport.java4
1 files changed, 1 insertions, 3 deletions
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));
}
/**