Ignore:
Timestamp:
2018-08-29T20:50:13+02:00 (6 years ago)
Author:
Don-vip
Message:

spotbugs - more fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r14193 r14202  
    3333import java.util.List;
    3434import java.util.Map;
     35import java.util.Objects;
    3536import java.util.Optional;
    3637import java.util.concurrent.ForkJoinPool;
     
    190191        }
    191192
     193        @Override
     194        public int hashCode() {
     195            return Objects.hash(order, osm, style, flags);
     196        }
     197
     198        @Override
     199        public boolean equals(Object obj) {
     200            if (this == obj)
     201                return true;
     202            if (obj == null || getClass() != obj.getClass())
     203                return false;
     204            StyleRecord other = (StyleRecord) obj;
     205            return flags == other.flags
     206                && order == other.order
     207                && Objects.equals(osm, other.osm)
     208                && Objects.equals(style, other.style);
     209        }
     210
    192211        /**
    193212         * Get the style for this style element.
Note: See TracChangeset for help on using the changeset viewer.