Ignore:
Timestamp:
2016-08-07T17:47:01+02:00 (10 years ago)
Author:
Don-vip
Message:

sonar - squid:S2440 - Classes with only "static" methods should not be instantiated

File:
1 edited

Legend:

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

    r10507 r10759  
    7070 * @author Francisco R. Santos <frsantos@gmail.com>
    7171 */
    72 public class OsmValidator {
     72public final class OsmValidator {
     73
     74    private OsmValidator() {
     75        // Hide default constructor for utilities classes
     76    }
    7377
    7478    public static volatile ValidatorLayer errorLayer;
    7579
    7680    /** The validate action */
    77     public ValidateAction validateAction = new ValidateAction();
     81    public static final ValidateAction validateAction = new ValidateAction();
    7882
    7983    /** Grid detail, multiplier of east,north values for valuable cell sizing */
     
    150154
    151155    /**
    152      * Constructs a new {@code OsmValidator}.
    153      */
    154     public OsmValidator() {
     156     * Initializes {@code OsmValidator}.
     157     */
     158    public static void initialize() {
    155159        checkValidatorDir();
    156160        initializeGridDetail();
Note: See TracChangeset for help on using the changeset viewer.