You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i tried to implement a property listener to observe the changing in a String property, but the listener is invoked also when the new value is the same of the previous. I see the source code and at the line 174 of DefaultPropertyContainer.java class there is a compare between instances instead of the value, is there a reason?
if (prev != value) { if (last.compareAndSet(prev, value)) { listener.onChange(value); } }
The text was updated successfully, but these errors were encountered:
Hi,
i tried to implement a property listener to observe the changing in a String property, but the listener is invoked also when the new value is the same of the previous. I see the source code and at the line 174 of DefaultPropertyContainer.java class there is a compare between instances instead of the value, is there a reason?
if (prev != value) { if (last.compareAndSet(prev, value)) { listener.onChange(value); } }
The text was updated successfully, but these errors were encountered: