Ignore:
Timestamp:
2017-04-10T03:37:29+02:00 (7 years ago)
Author:
Don-vip
Message:

sonar - checkstyle:com.puppycrawl.tools.checkstyle.checks.naming.AbbreviationAsWordInNameCheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r11858 r11880  
    640640        // as a result of the alignment, it is common to round "half integer" values
    641641        // like 1.49999, which is numerically unstable; add small epsilon to resolve this
    642         double EPSILON = 1e-3;
     642        final double epsilon = 1e-3;
    643643        Point2D enOriginAligned = new Point2D.Double(
    644                 Math.round(enOrigin.getX()) + EPSILON,
    645                 Math.round(enOrigin.getY()) + EPSILON);
     644                Math.round(enOrigin.getX()) + epsilon,
     645                Math.round(enOrigin.getY()) + epsilon);
    646646        EastNorth enShift = mvs.getForView(enOriginAligned.getX(), enOriginAligned.getY()).getEastNorth();
    647647        newCenter = newCenter.subtract(enShift);
Note: See TracChangeset for help on using the changeset viewer.