Ignore:
Timestamp:
2016-09-27T20:47:19+02:00 (8 years ago)
Author:
simon04
Message:

fix #10260 - Warning on reversing ways with direction-dependent nodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/correction/TagCorrection.java

    r10125 r11061  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.data.correction;
     3
     4import java.util.Objects;
    35
    46/**
     
    4749        return !newValue.equals(oldValue);
    4850    }
     51
     52    @Override
     53    public boolean equals(Object o) {
     54        if (this == o) return true;
     55        if (!(o instanceof TagCorrection)) return false;
     56        TagCorrection that = (TagCorrection) o;
     57        return Objects.equals(oldKey, that.oldKey) &&
     58                Objects.equals(newKey, that.newKey) &&
     59                Objects.equals(oldValue, that.oldValue) &&
     60                Objects.equals(newValue, that.newValue);
     61    }
     62
     63    @Override
     64    public int hashCode() {
     65        return Objects.hash(oldKey, newKey, oldValue, newValue);
     66    }
    4967}
Note: See TracChangeset for help on using the changeset viewer.