Ignore:
Timestamp:
2014-05-09T06:03:50+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8465 - replace Utils.equal by Objects.equals, new in Java 7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java

    r7033 r7083  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.io.imagery;
    3 
    4 import static org.openstreetmap.josm.tools.Utils.equal;
    53
    64import java.io.IOException;
     
    97import java.util.Arrays;
    108import java.util.List;
     9import java.util.Objects;
    1110import java.util.Stack;
    1211
     
    176175            }
    177176            states.push(newState);
    178             if (newState == State.UNKNOWN && equal(atts.getValue("mandatory"), "true")) {
     177            if (newState == State.UNKNOWN && "true".equals(atts.getValue("mandatory"))) {
    179178                skipEntry = true;
    180179            }
     
    208207                    boolean found = false;
    209208                    for (ImageryType type : ImageryType.values()) {
    210                         if (equal(accumulator.toString(), type.getTypeString())) {
     209                        if (Objects.equals(accumulator.toString(), type.getTypeString())) {
    211210                            entry.setImageryType(type);
    212211                            found = true;
Note: See TracChangeset for help on using the changeset viewer.