Ignore:
Timestamp:
2013-09-11T00:41:49+02:00 (6 years ago)
Author:
Don-vip
Message:

Sonar - Don't create instances of already existing BigInteger ZERO

File:
1 edited

Legend:

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

    r6130 r6230  
    3838public final class AlignInCircleAction extends JosmAction {
    3939
     40    /**
     41     * Constructs a new {@code AlignInCircleAction}.
     42     */
    4043    public AlignInCircleAction() {
    4144        super(tr("Align Nodes in Circle"), "aligncircle", tr("Move the selected nodes into a circle."),
     
    151154            // First calculate the average point
    152155
    153             BigDecimal east = new BigDecimal(0);
    154             BigDecimal north = new BigDecimal(0);
     156            BigDecimal east = BigDecimal.ZERO;
     157            BigDecimal north = BigDecimal.ZERO;
    155158
    156159            for (Node n : nodes) {
Note: See TracChangeset for help on using the changeset viewer.