Changeset 16441 in josm


Ignore:
Timestamp:
2020-05-17T15:57:50+02:00 (5 years ago)
Author:
simon04
Message:

see #19251 - Checkstyle, PMD

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

Legend:

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

    r16438 r16441  
    247247     */
    248248    private static List<Node> collectNodesWithExternReferers(List<Way> ways) {
    249         List<Node> withReferrers = ways.stream().flatMap(w -> w.getNodes().stream()).filter(n -> n.getReferrers().size() > 1).collect(Collectors.toList());
    250         return withReferrers;
     249        return ways.stream().flatMap(w -> w.getNodes().stream()).filter(n -> n.getReferrers().size() > 1).collect(Collectors.toList());
    251250    }
    252251
  • trunk/src/org/openstreetmap/josm/actions/relation/AddSelectionToRelations.java

    r16438 r16441  
    4343    public void actionPerformed(ActionEvent e) {
    4444        Collection<Command> cmds = Utils.filteredCollection(relations, Relation.class).stream()
    45                 .map(orig -> GenericRelationEditor.addPrimitivesToRelation(orig, MainApplication.getLayerManager().getActiveDataSet().getSelected()))
     45                .map(r -> GenericRelationEditor.addPrimitivesToRelation(r, MainApplication.getLayerManager().getActiveDataSet().getSelected()))
    4646                .filter(Objects::nonNull)
    4747                .collect(StreamUtils.toUnmodifiableList());
  • trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetCacheManager.java

    r16436 r16441  
    285285        tblChangesets.setTransferHandler(new TransferHandler() {
    286286            @Override
    287             public void exportToClipboard(JComponent comp, Clipboard clip, int action) throws IllegalStateException {
     287            public void exportToClipboard(JComponent comp, Clipboard clip, int action) {
    288288                List<Changeset> changesets = model.getSelectedChangesets();
    289289                ChangesetTransferable transferable = new ChangesetTransferable(changesets);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r16438 r16441  
    411411            protected int checkTableSelection(JTable table, Point p) {
    412412                int row = super.checkTableSelection(table, p);
    413                 List<IRelation<?>> rels = Arrays.stream(table.getSelectedRows()).mapToObj(i -> (IRelation<?>) table.getValueAt(i, 0)).collect(Collectors.toList());
     413                List<IRelation<?>> rels = Arrays.stream(table.getSelectedRows())
     414                        .mapToObj(i -> (IRelation<?>) table.getValueAt(i, 0))
     415                        .collect(Collectors.toList());
    414416                membershipMenuHandler.setPrimitives(rels);
    415417                return row;
Note: See TracChangeset for help on using the changeset viewer.