Changeset 10672 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2016-07-29T00:09:27+02:00 (8 years ago)
Author:
Don-vip
Message:

see #12472 - fix "UnsynchronizedOverridesSynchronized" warnings

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r10657 r10672  
    636636
    637637        @Override
    638         public boolean equals(Object obj) {
     638        public synchronized boolean equals(Object obj) {
    639639            return super.equals(obj)
    640640                    || (obj instanceof TagCheck && rule.equals(((TagCheck) obj).rule))
     
    643643
    644644        @Override
    645         public int hashCode() {
     645        public synchronized int hashCode() {
    646646            return Objects.hash(super.hashCode(), rule);
    647647        }
  • trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java

    r10173 r10672  
    9292    /** Do not let anyone add mouse listeners */
    9393    @Override
    94     public void addMouseListener(MouseListener l) {
     94    public synchronized void addMouseListener(MouseListener l) {
    9595        // Do nothing
    9696    }
Note: See TracChangeset for help on using the changeset viewer.