Ignore:
Timestamp:
2016-05-31T00:14:15+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - pmd:ImmutableField + remove unused code

File:
1 edited

Legend:

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

    r10300 r10306  
    2727         * Scale factor, same unit as in {@link NavigatableComponent}
    2828         */
    29         private double scale;
     29        private final double scale;
    3030
    3131        /**
    3232         * True if this scale is native resolution for data source.
    3333         */
    34         private boolean isNative;
    35 
    36         private int index;
     34        private final boolean isNative;
     35
     36        private final int index;
    3737
    3838        /**
     
    7878
    7979    /**
    80      * List of scales, may include intermediate steps
    81      * between native resolutions
     80     * List of scales, may include intermediate steps between native resolutions
    8281     */
    8382    class ScaleList  {
    84         private List<Scale> scales = new ArrayList<>();
    85 
    86         protected ScaleList(double[] scales) {
    87             for (int i = 0; i < scales.length; i++) {
    88                 this.scales.add(new Scale(scales[i], i));
    89             }
    90         }
     83        private final List<Scale> scales = new ArrayList<>();
    9184
    9285        protected ScaleList() {
Note: See TracChangeset for help on using the changeset viewer.