Ignore:
Timestamp:
2024-06-17T19:37:02+02:00 (16 months ago)
Author:
taylor.smock
Message:

Cleanup some new PMD warnings from PMD 7.x (followup of r19101)

File:
1 edited

Legend:

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

    r18987 r19108  
    390390        if (!map.mapView.isActiveLayerVisible())
    391391            return;
    392         if (!(Boolean) this.getValue("active"))
     392        if (Boolean.FALSE.equals(this.getValue("active")))
    393393            return;
    394394        if (e.getButton() != MouseEvent.BUTTON1)
     
    512512                    if (moveCommand == null) {
    513513                        //make a new move command
    514                         moveCommand = new MoveCommand(new ArrayList<OsmPrimitive>(movingNodeList), bestMovement);
     514                        moveCommand = new MoveCommand(new ArrayList<>(movingNodeList), bestMovement);
    515515                        UndoRedoHandler.getInstance().add(moveCommand);
    516516                    } else {
     
    939939    private EastNorth calculateBestMovementAndNewNodes(EastNorth mouseEn) {
    940940        EastNorth bestMovement = calculateBestMovement(mouseEn);
    941         EastNorth n1movedEn = initialN1en.add(bestMovement), n2movedEn;
     941        EastNorth n1movedEn = initialN1en.add(bestMovement);
     942        EastNorth n2movedEn;
    942943
    943944        // find out the movement distance, in metres
     
    11581159        double raoffsety = symbolSize*factor*normal.getY();
    11591160
    1160         double cx = center.getX(), cy = center.getY();
     1161        final double cx = center.getX();
     1162        final double cy = center.getY();
    11611163        double k = mirror ? -1 : 1;
    11621164        Point2D ra1 = new Point2D.Double(cx + raoffsetx, cy + raoffsety);
Note: See TracChangeset for help on using the changeset viewer.