package com.cflint;

import com.cflint.main.CFLintMain;

public class Version {

    public static String getVersion() {

        String version = CFLintMain.class.getPackage().getImplementationVersion();
        if (version != null) {
            return version;
        } else {
            return "";
        }

    }
}

package com.cflint;

import com.cflint.main.CFLintMain;

public class Version {

    private Version() {
        throw new IllegalStateException("Version utility class");
    }

    public static String getVersion() {

        String version = CFLintMain.class.getPackage().getImplementationVersion();
        if (version != null) {
            return version;
        } else {
            return "";
        }

    }
}

add private constructor