Ignore:
Timestamp:
2013-07-26T17:28:24+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8902 - string.equals("") => string.isEmpty() (patch by shinigami)

File:
1 edited

Legend:

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

    r6070 r6087  
    3737            XPathExpression fileExp = xpath.compile("file/text()");
    3838            String fileStr = (String) fileExp.evaluate(elem, XPathConstants.STRING);
    39             if (fileStr == null || fileStr.equals("")) {
     39            if (fileStr == null || fileStr.isEmpty()) {
    4040                throw new IllegalDataException(tr("File name expected for layer no. {0}", support.getLayerIndex()));
    4141            }
Note: See TracChangeset for help on using the changeset viewer.