Ignore:
Timestamp:
2020-05-23T21:44:48+02:00 (4 years ago)
Author:
simon04
Message:

fix #19281, see #19174 - Use Objects.hash where it is not used (patch by hiddewie, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileSourceDisplaySettings.java

    r16056 r16488  
    55import java.util.Locale;
    66import java.util.Map;
     7import java.util.Objects;
    78import java.util.concurrent.CopyOnWriteArrayList;
    89
     
    323324    @Override
    324325    public int hashCode() {
    325         final int prime = 31;
    326         int result = 1;
    327         result = prime * result + (autoLoad ? 1231 : 1237);
    328         result = prime * result + (autoZoom ? 1231 : 1237);
    329         result = prime * result + (showErrors ? 1231 : 1237);
    330         return result;
     326        return Objects.hash(autoLoad, autoZoom, showErrors);
    331327    }
    332328
Note: See TracChangeset for help on using the changeset viewer.