Ignore:
Timestamp:
2014-02-25T01:31:24+01:00 (6 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java

    r6248 r6883  
    2121 * In addition, either datum or nadgrid has to be initialized to some value.
    2222 */
    23 abstract public class AbstractProjection implements Projection {
     23public abstract class AbstractProjection implements Projection {
    2424
    2525    protected Ellipsoid ellps;
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r6854 r6883  
    7575        public boolean hasValue;
    7676
    77         public final static Map<String, Param> paramsByKey = new HashMap<String, Param>();
     77        public static final Map<String, Param> paramsByKey = new HashMap<String, Param>();
    7878        static {
    7979            for (Param p : Param.values()) {
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r6488 r6883  
    6060     * should be compatible to PROJ.4
    6161     */
    62     final public static Map<String, ProjFactory> projs = new HashMap<String, ProjFactory>();
    63     final public static Map<String, Ellipsoid> ellipsoids = new HashMap<String, Ellipsoid>();
    64     final public static Map<String, Datum> datums = new HashMap<String, Datum>();
    65     final public static Map<String, NTV2GridShiftFileWrapper> nadgrids = new HashMap<String, NTV2GridShiftFileWrapper>();
    66     final public static Map<String, Pair<String, String>> inits = new HashMap<String, Pair<String, String>>();
     62    public static final Map<String, ProjFactory> projs = new HashMap<String, ProjFactory>();
     63    public static final Map<String, Ellipsoid> ellipsoids = new HashMap<String, Ellipsoid>();
     64    public static final Map<String, Datum> datums = new HashMap<String, Datum>();
     65    public static final Map<String, NTV2GridShiftFileWrapper> nadgrids = new HashMap<String, NTV2GridShiftFileWrapper>();
     66    public static final Map<String, Pair<String, String>> inits = new HashMap<String, Pair<String, String>>();
    6767
    6868    static {
     
    158158    }
    159159
    160     private final static Set<String> allCodes = new HashSet<String>();
    161     private final static Map<String, ProjectionChoice> allProjectionChoicesByCode = new HashMap<String, ProjectionChoice>();
    162     private final static Map<String, Projection> projectionsByCode_cache = new HashMap<String, Projection>();
     160    private static final Set<String> allCodes = new HashSet<String>();
     161    private static final Map<String, ProjectionChoice> allProjectionChoicesByCode = new HashMap<String, ProjectionChoice>();
     162    private static final Map<String, Projection> projectionsByCode_cache = new HashMap<String, Projection>();
    163163
    164164    static {
  • trunk/src/org/openstreetmap/josm/data/projection/datum/AbstractDatum.java

    r6069 r6883  
    44import org.openstreetmap.josm.data.projection.Ellipsoid;
    55
    6 abstract public class AbstractDatum implements Datum {
     6public abstract class AbstractDatum implements Datum {
    77
    88    protected String name;
     
    1010    protected Ellipsoid ellps;
    1111
     12    /**
     13     * Constructs a new {@code AbstractDatum}.
     14     * @param name The name
     15     * @param proj4Id The Proj4 identifier
     16     * @param ellps The ellipsoid
     17     */
    1218    public AbstractDatum(String name, String proj4Id, Ellipsoid ellps) {
    1319        this.name = name;
  • trunk/src/org/openstreetmap/josm/data/projection/datum/GRS80Datum.java

    r6362 r6883  
    1212public final class GRS80Datum extends NullDatum {
    1313
    14     public final static GRS80Datum INSTANCE = new GRS80Datum();
     14    /**
     15     * The unique instance.
     16     */
     17    public static final GRS80Datum INSTANCE = new GRS80Datum();
    1518
    1619    private GRS80Datum() {
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java

    r6488 r6883  
    2020     * Description of Transformation - DE_DHDN (BeTA, 2007) to ETRS89</a>
    2121     */
    22     public final static NTV2GridShiftFileWrapper BETA2007 = new NTV2GridShiftFileWrapper("resource://data/projection/BETA2007.gsb");
     22    public static final NTV2GridShiftFileWrapper BETA2007 = new NTV2GridShiftFileWrapper("resource://data/projection/BETA2007.gsb");
    2323
    2424    /**
     
    2828     * [French] Transformation de coordonnées NTF – RGF93 / Format de grille NTv2</a>
    2929     */
    30     public final static NTV2GridShiftFileWrapper ntf_rgf93 = new NTV2GridShiftFileWrapper("resource://data/projection/ntf_r93_b.gsb");
    31 
     30    public static final NTV2GridShiftFileWrapper ntf_rgf93 = new NTV2GridShiftFileWrapper("resource://data/projection/ntf_r93_b.gsb");
    3231
    3332    private NTV2GridShiftFile instance = null;
  • trunk/src/org/openstreetmap/josm/data/projection/proj/LambertConformalConic.java

    r6362 r6883  
    2828    protected double e;
    2929
    30     public static abstract class Parameters {
     30    public abstract static class Parameters {
    3131        public final double latitudeOrigin;
    3232        public Parameters(double latitudeOrigin) {
Note: See TracChangeset for help on using the changeset viewer.