Changeset 11880 in josm for trunk


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

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/routines/DomainValidator.java

    r11861 r11880  
    20142014        try {
    20152015            final String ascii = IDN.toASCII(input);
    2016             if (IDNBUGHOLDER.IDN_TOASCII_PRESERVES_TRAILING_DOTS) {
     2016            if (IdnBugHolder.IDN_TOASCII_PRESERVES_TRAILING_DOTS) {
    20172017                return ascii;
    20182018            }
     
    20422042    }
    20432043
    2044     private static class IDNBUGHOLDER {
     2044    private static class IdnBugHolder {
    20452045        private static boolean keepsTrailingDot() {
    20462046            final String input = "a."; // must be a valid name
  • 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.