Ignore:
Timestamp:
2013-07-26T17:28:24+02:00 (7 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/plugins/PluginHandler.java

    r6084 r6087  
    11831183            PluginInformation pi = pp.getPluginInformation();
    11841184            pl.remove(pi.name);
    1185             pl.add(pi.name + " (" + (pi.localversion != null && !pi.localversion.equals("")
     1185            pl.add(pi.name + " (" + (pi.localversion != null && !pi.localversion.isEmpty()
    11861186                    ? pi.localversion : "unknown") + ")");
    11871187        }
     
    11981198            final PluginInformation info = p.getPluginInformation();
    11991199            String name = info.name
    1200             + (info.version != null && !info.version.equals("") ? " Version: " + info.version : "");
     1200            + (info.version != null && !info.version.isEmpty() ? " Version: " + info.version : "");
    12011201            pluginTab.add(new JLabel(name), GBC.std());
    12021202            pluginTab.add(Box.createHorizontalGlue(), GBC.std().fill(GBC.HORIZONTAL));
Note: See TracChangeset for help on using the changeset viewer.