Why method firePropertyChange (String propertyName, Object oldValue, Object newValue) in class PropertyChangeSupport don’t check that old and new value can be null at the same time?
Why method firePropertyChange (String propertyName, Object oldValue, Object newValue) in class PropertyChangeSupport don’t check
Share
PropertyChangeEvent javadoc may give some clue about it:
So it looks like having
oldValue==nullandnewValue==nullcan have some special meaning whensource==nullas well. Because of this is may want to always propagate the change when both values arenullseven though they are the same.