Ignore:
Timestamp:
2015-06-03T14:05:30+02:00 (10 years ago)
Author:
Don-vip
Message:

global use of String.isEmpty()

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ColorHelper.java

    r8404 r8461  
    2020     */
    2121    public static Color html2color(String html) {
    22         if (html.length() > 0 && html.charAt(0) == '#')
     22        if (!html.isEmpty() && html.charAt(0) == '#')
    2323            html = html.substring(1);
    2424        if (html.length() == 3) {
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r8377 r8461  
    292292        }
    293293        result += name;
    294         if (sc != null && sc.getKeyText().length() != 0) {
     294        if (sc != null && !sc.getKeyText().isEmpty()) {
    295295            result += " ";
    296296            if (canHtml) {
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r8404 r8461  
    147147        result += "<html>";
    148148        result += name;
    149         if (sc != null && sc.getKeyText().length() != 0) {
     149        if (sc != null && !sc.getKeyText().isEmpty()) {
    150150            result += " ";
    151151            result += "<font size='-2'>";
  • trunk/src/org/openstreetmap/josm/tools/TextTagParser.java

    r8443 r8461  
    8585                    esc = true;
    8686                } else if (c == '\"' && !quotesStarted) { // opening "
    87                     if (s.toString().trim().length()>0) { // we had   ||some text"||
     87                    if (!s.toString().trim().isEmpty()) { // we had   ||some text"||
    8888                        s.append(c); // just add ", not open
    8989                    } else {
Note: See TracChangeset for help on using the changeset viewer.