Ignore:
Timestamp:
2016-05-18T17:44:31+02:00 (3 years ago)
Author:
Don-vip
Message:

findbugs - UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR

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

Legend:

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

    r10235 r10250  
    44import org.openstreetmap.josm.data.projection.Ellipsoid;
    55import org.openstreetmap.josm.data.projection.ProjectionConfigurationException;
     6import org.openstreetmap.josm.tools.CheckParameterUtil;
    67
    78/**
     
    8485    @Override
    8586    public void initialize(ProjParameters params) throws ProjectionConfigurationException {
     87        CheckParameterUtil.ensureParameterNotNull(params, "params");
     88        CheckParameterUtil.ensureParameterNotNull(params.ellps, "params.ellps");
    8689        e2 = params.ellps.e2;
    8790        e = params.ellps.e;
  • trunk/src/org/openstreetmap/josm/data/projection/proj/LonLat.java

    r10001 r10250  
    66import org.openstreetmap.josm.data.Bounds;
    77import org.openstreetmap.josm.data.projection.ProjectionConfigurationException;
     8import org.openstreetmap.josm.tools.CheckParameterUtil;
    89
    910/**
     
    2627    @Override
    2728    public void initialize(ProjParameters params) throws ProjectionConfigurationException {
     29        CheckParameterUtil.ensureParameterNotNull(params, "params");
     30        CheckParameterUtil.ensureParameterNotNull(params.ellps, "params.ellps");
    2831        a = params.ellps.a;
    2932    }
  • trunk/src/org/openstreetmap/josm/data/projection/proj/TransverseMercator.java

    r9970 r10250  
    66import org.openstreetmap.josm.data.Bounds;
    77import org.openstreetmap.josm.data.projection.ProjectionConfigurationException;
     8import org.openstreetmap.josm.tools.CheckParameterUtil;
    89
    910/**
     
    119120    public void initialize(ProjParameters params) throws ProjectionConfigurationException {
    120121        super.initialize(params);
     122        CheckParameterUtil.ensureParameterNotNull(params, "params");
     123        CheckParameterUtil.ensureParameterNotNull(params.ellps, "params.ellps");
    121124        eb2 = params.ellps.eb2;
    122125        latitudeOfOrigin = params.lat0 == null ? 0 : Math.toRadians(params.lat0);
Note: See TracChangeset for help on using the changeset viewer.