Ignore:
Timestamp:
2014-04-15T00:43:24+02:00 (11 years ago)
Author:
Don-vip
Message:

fix some sonar issues recently introduced

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

Legend:

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

    r6380 r6977  
    2323    private String textLatLon, textEastNorth;
    2424
     25    /**
     26     * Constructs a new {@code AddNodeAction}.
     27     */
    2528    public AddNodeAction() {
    2629        super(tr("Add Node..."), "addnode", tr("Add a node by entering latitude / longitude or easting / northing."),
  • trunk/src/org/openstreetmap/josm/actions/AlignInLineAction.java

    r6961 r6977  
    257257            for(int i = 1; i < nodes.size()-1; i++)
    258258                if(nodes.get(i) == node) {
    259                     System.out.printf("Find 2 neighbors\n");
    260259                    neighbors.add(nodes.get(i-1));
    261260                    neighbors.add(nodes.get(i+1));
    262                     //lines.add(new Line(nodes.get(i-1), nodes.get(i+1)));
    263261                }
    264262            if(neighbors.size() == 0)
  • trunk/src/org/openstreetmap/josm/actions/CreateCircleAction.java

    r6942 r6977  
    9797     * Class designed to create a couple between a node and its angle relative to the center of the circle.
    9898     */
    99     private class PolarNode {
     99    private static class PolarNode {
    100100        double a;
    101101        Node node;
     
    111111     * Comparator used to order PolarNode relative to their angle.
    112112     */
    113     private class PolarNodeComparator implements Comparator<PolarNode> {
     113    private static class PolarNodeComparator implements Comparator<PolarNode> {
    114114
    115115        @Override
     
    186186            double yc = 0.5 * (y1 + y2);
    187187            center = new EastNorth(xc, yc);
    188         } else if (nodes.size() == 3) {
     188        } else {
    189189            // triangle: three single nodes needed or a way with three nodes
    190190            center = Geometry.getCenter(nodes);
  • trunk/src/org/openstreetmap/josm/actions/JoinAreasAction.java

    r6976 r6977  
    5454    private final LinkedList<Command> cmds = new LinkedList<Command>();
    5555    private int cmdsCount = 0;
    56     private final LinkedList<Relation> addedRelations = new LinkedList<Relation>();
     56    private final List<Relation> addedRelations = new LinkedList<Relation>();
    5757
    5858    /**
Note: See TracChangeset for help on using the changeset viewer.