Ignore:
Timestamp:
2015-05-17T02:40:26+02:00 (5 years ago)
Author:
Don-vip
Message:

code style - Method makes literal string comparisons passing the literal as an argument

File:
1 edited

Legend:

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

    r7518 r8373  
    9595    private void writeAttr(IWithAttributes obj, List<String> keys) {
    9696        for (String key : keys) {
    97             if (key.equals(META_LINKS)) {
     97            if (META_LINKS.equals(key)) {
    9898                Collection<GpxLink> lValue = obj.<GpxLink>getCollection(key);
    9999                if (lValue != null) {
     
    102102                    }
    103103                }
    104             } else if (key.equals(META_EXTENSIONS)) {
     104            } else if (META_EXTENSIONS.equals(key)) {
    105105                Extensions extensions = (Extensions) obj.get(key);
    106106                if (extensions != null) {
Note: See TracChangeset for help on using the changeset viewer.