Ignore:
Timestamp:
2017-04-08T01:08:59+02:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S1444 - "public static" fields should be constant

File:
1 edited

Legend:

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

    r11746 r11852  
    7575    }
    7676
    77     public static volatile ValidatorLayer errorLayer;
     77    private static volatile ValidatorLayer errorLayer;
    7878
    7979    /** The validate action */
     
    8181
    8282    /** Grid detail, multiplier of east,north values for valuable cell sizing */
    83     public static double griddetail;
     83    private static double griddetail;
    8484
    8585    private static final Collection<String> ignoredErrors = new TreeSet<>();
     
    215215    }
    216216
     217    /**
     218     * Initializes error layer.
     219     */
    217220    public static synchronized void initializeErrorLayer() {
    218221        if (!ValidatorPreference.PREF_LAYER.get())
     
    222225            Main.getLayerManager().addLayer(errorLayer);
    223226        }
     227    }
     228
     229    /**
     230     * Resets error layer.
     231     * @since 11852
     232     */
     233    public static synchronized void resetErrorLayer() {
     234        errorLayer = null;
    224235    }
    225236
     
    303314            OsmValidator.griddetail = 1.0;
    304315        }
     316    }
     317
     318    /**
     319     * Returns grid detail, multiplier of east,north values for valuable cell sizing
     320     * @return grid detail
     321     * @since 11852
     322     */
     323    public static double getGridDetail() {
     324        return griddetail;
    305325    }
    306326
Note: See TracChangeset for help on using the changeset viewer.