Changeset 11910 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileCoordinateConverter.java
r11865 r11910 6 6 import java.awt.geom.Point2D; 7 7 import java.awt.geom.Rectangle2D; 8 import java.util.Objects; 8 9 9 10 import org.openstreetmap.gui.jmapviewer.Tile; … … 35 36 * @param tileSource The tile source to use when converting coordinates. 36 37 * @param settings displacement settings. 38 * @throws NullPointerException if one argument is null 37 39 */ 38 40 public TileCoordinateConverter(MapView mapView, TileSource tileSource, TileSourceDisplaySettings settings) { 39 this.mapView = mapView;40 this.tileSource = tileSource;41 this.settings = settings;41 this.mapView = Objects.requireNonNull(mapView, "mapView"); 42 this.tileSource = Objects.requireNonNull(tileSource, "tileSource"); 43 this.settings = Objects.requireNonNull(settings, "settings"); 42 44 } 43 45
Note:
See TracChangeset
for help on using the changeset viewer.