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/tools/template_engine/Variable.java

    r14093 r16488  
    44import java.util.Collection;
    55import java.util.Locale;
     6import java.util.Objects;
    67
    78/**
     
    8384    @Override
    8485    public int hashCode() {
    85         final int prime = 31;
    86         int result = 1;
    87         result = prime * result + (special ? 1231 : 1237);
    88         result = prime * result + ((variableName == null) ? 0 : variableName.hashCode());
    89         return result;
     86        return Objects.hash(special, variableName);
    9087    }
    9188
Note: See TracChangeset for help on using the changeset viewer.