Changeset 16337 in josm for trunk/src


Ignore:
Timestamp:
2020-04-18T15:04:48+02:00 (5 years ago)
Author:
simon04
Message:

Checkstyle, PMD

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/InternetTags.java

    r16334 r16337  
    1111import org.openstreetmap.josm.command.ChangePropertyCommand;
    1212import org.openstreetmap.josm.command.Command;
    13 import org.openstreetmap.josm.data.osm.Node;
    1413import org.openstreetmap.josm.data.osm.OsmPrimitive;
    15 import org.openstreetmap.josm.data.osm.Relation;
    16 import org.openstreetmap.josm.data.osm.Way;
    1714import org.openstreetmap.josm.data.validation.Severity;
    1815import org.openstreetmap.josm.data.validation.Test;
  • trunk/src/org/openstreetmap/josm/gui/io/CustomConfigurator.java

    r16329 r16337  
    477477        private void processPreferencesElement(Element item) {
    478478            String oper = evalVars(item.getAttribute("operation"));
    479             String id = evalVars(item.getAttribute("id"));
    480479
    481480            if ("delete-keys".equals(oper)) {
  • trunk/src/org/openstreetmap/josm/tools/OverpassTurboQueryWizard.java

    r16336 r16337  
    9090            final EnumSet<OsmPrimitiveType> types = EnumSet.noneOf(OsmPrimitiveType.class);
    9191            final String query = constructQuery(conjunction, types);
    92             final Stream<String> typeStream = types.isEmpty() || types.size() == 3
     92            (types.isEmpty() || types.size() == 3
    9393                    ? Stream.of("nwr")
    94                     : types.stream().map(OsmPrimitiveType::getAPIName);
    95             typeStream.forEach(type -> queryLines.add("  " + type + query + queryLineSuffix + ";"));
     94                    : types.stream().map(OsmPrimitiveType::getAPIName))
     95                    .forEach(type -> queryLines.add("  " + type + query + queryLineSuffix + ";"));
    9696        }
    9797        queryLines.add(");");
Note: See TracChangeset for help on using the changeset viewer.