Ignore:
Timestamp:
2015-05-17T02:40:26+02:00 (7 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/tools/I18n.java

    r8352 r8373  
    451451        if ("en".equals(loadedCode))
    452452            return;
    453         String enfile = "data/en.lang";
    454         String langfile = "data/"+loadedCode+".lang";
     453        final String enfile = "data/en.lang";
     454        final String langfile = "data/"+loadedCode+".lang";
    455455        try (
    456456            FileInputStream fis = new FileInputStream(source);
     
    461461            while (!found && (e = jar.getNextEntry()) != null) {
    462462                String name = e.getName();
    463                 if(name.equals(enfile))
     463                if (enfile.equals(name))
    464464                    found = true;
    465465            }
Note: See TracChangeset for help on using the changeset viewer.