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/plugins/PluginHandler.java

    r16427 r16488  
    3333import java.util.Map;
    3434import java.util.Map.Entry;
     35import java.util.Objects;
    3536import java.util.Set;
    3637import java.util.TreeSet;
     
    222223        @Override
    223224        public int hashCode() {
    224             final int prime = 31;
    225             int result = prime + ((name == null) ? 0 : name.hashCode());
    226             return prime * result + ((reason == null) ? 0 : reason.hashCode());
     225            return Objects.hash(name, reason);
    227226        }
    228227
Note: See TracChangeset for help on using the changeset viewer.