Changeset 12491 in josm


Ignore:
Timestamp:
2017-07-22T16:25:54+02:00 (7 years ago)
Author:
Don-vip
Message:

fix some warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r12489 r12491  
    15711571        Preset(String presetName) throws ParseError {
    15721572
    1573             if (presetName == null || presetName.equals("")) {
     1573            if (presetName == null || presetName.isEmpty()) {
    15741574                throw new ParseError("The name of the preset is required");
    15751575            }
     
    15871587                    .stream()
    15881588                    .filter(preset -> !(preset instanceof TaggingPresetMenu || preset instanceof TaggingPresetSeparator))
    1589                     .filter(preset -> this.presetNameMatch(presetName, preset, matchStrictly))
     1589                    .filter(preset -> presetNameMatch(presetName, preset, matchStrictly))
    15901590                    .collect(Collectors.toList());
    15911591
Note: See TracChangeset for help on using the changeset viewer.