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/SearchExpressionCondition.java

    r14093 r16488  
    33
    44import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match;
     5
     6import java.util.Objects;
    57
    68/**
     
    4042    @Override
    4143    public int hashCode() {
    42         final int prime = 31;
    43         int result = 1;
    44         result = prime * result + ((condition == null) ? 0 : condition.hashCode());
    45         result = prime * result + ((text == null) ? 0 : text.hashCode());
    46         return result;
     44        return Objects.hash(condition, text);
    4745    }
    4846
Note: See TracChangeset for help on using the changeset viewer.