Changeset 14440 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-11-22T00:06:51+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/projection/datum
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2Datum.java
r13627 r14440 3 3 4 4 import java.io.IOException; 5 import java.util.Objects; 5 6 6 7 import org.openstreetmap.josm.data.coor.LatLon; … … 25 26 public NTV2Datum(String name, String proj4Id, Ellipsoid ellps, NTV2GridShiftFileWrapper nadgrids) { 26 27 super(name, proj4Id, ellps); 27 this.nadgrids = nadgrids;28 this.nadgrids = Objects.requireNonNull(nadgrids); 28 29 } 29 30 -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFileWrapper.java
r13627 r14440 6 6 import java.util.Collections; 7 7 import java.util.Map; 8 import java.util.Objects; 8 9 import java.util.TreeMap; 10 11 import org.openstreetmap.josm.tools.Logging; 9 12 10 13 /** … … 43 46 */ 44 47 public NTV2GridShiftFileWrapper(String filename) { 45 this.gridFileName = filename;48 this.gridFileName = Objects.requireNonNull(filename); 46 49 } 47 50 … … 65 68 } 66 69 } 70 if (instance == null) { 71 Logging.error("Unable to find NTV2 grid shift file for {0}", gridFileName); 72 } 67 73 } 68 74 return instance;
Note:
See TracChangeset
for help on using the changeset viewer.