Ticket #19426: 19426.patch

File 19426.patch, 1017 bytes (added by taylor.smock, 5 years ago)

Re-add equalsPref for binary compatibility

  • src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

     
    590590        // CHECKSTYLE.ON: BooleanExpressionComplexity
    591591    }
    592592
     593    /**
     594     * See {@link SourceInfo#equalsPref}. This is kept for binary compatibility.
     595     *
     596     * @param other the ImageryInfo to compare to
     597     * @return {@code true} if they are equal.
     598     */
     599    public boolean equalsPref(ImageryInfo other) {
     600        return this.equalsPref((SourceInfo<ImageryInfo.ImageryCategory, ImageryInfo.ImageryType,
     601                ImageryInfo.ImageryBounds, ImageryInfo.ImageryPreferenceEntry>) other);
     602    }
     603
    593604    @Override
    594605    public int compareTo(SourceInfo<ImageryInfo.ImageryCategory, ImageryInfo.ImageryType,
    595606            ImageryInfo.ImageryBounds, ImageryInfo.ImageryPreferenceEntry> other) {