Changeset 11910 in josm


Ignore:
Timestamp:
2017-04-15T00:45:34+02:00 (2 weeks ago)
Author:
Don-vip
Message:

initialize AbstractTileSourceLayerTest

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileCoordinateConverter.java

    r11865 r11910  
    66import java.awt.geom.Point2D;
    77import java.awt.geom.Rectangle2D;
     8import java.util.Objects;
    89
    910import org.openstreetmap.gui.jmapviewer.Tile;
     
    3536     * @param tileSource The tile source to use when converting coordinates.
    3637     * @param settings displacement settings.
     38     * @throws NullPointerException if one argument is null
    3739     */
    3840    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");
    4244    }
    4345
Note: See TracChangeset for help on using the changeset viewer.