Ignore:
Timestamp:
2020-08-02T20:30:02+02:00 (4 years ago)
Author:
simon04
Message:

Remove Collection.contains check for Collection.remove

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/util/CellEditorSupport.java

    r8390 r16824  
    4141    public final void addCellEditorListener(CellEditorListener l) {
    4242        synchronized (this) {
    43             if (l != null && !listeners.contains(l)) {
     43            if (l != null) {
    4444                listeners.add(l);
    4545            }
     
    5353    public final void removeCellEditorListener(CellEditorListener l) {
    5454        synchronized (this) {
    55             if (l != null && listeners.contains(l)) {
     55            if (l != null) {
    5656                listeners.remove(l);
    5757            }
Note: See TracChangeset for help on using the changeset viewer.