Ticket #8902: doublecmp.diff

File doublecmp.diff, 600 bytes (added by shinigami, 12 years ago)

effective double comparison

  • src/org/openstreetmap/josm/io/FileImporter.java

     
    104104
    105105    @Override
    106106    public int compareTo(FileImporter other) {
    107         return (new Double(this.getPriority())).compareTo(other.getPriority());
     107        return Double.compare(this.getPriority(), other.getPriority());
    108108    }
    109109
    110110    public static CBZip2InputStream getBZip2InputStream(InputStream in) throws IOException {