Index: /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java	(revision 11166)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java	(revision 11167)
@@ -216,10 +216,10 @@
 
     /**
+     * Creates and returns a new {@link TileSource} instance depending on {@link #info} specified in the constructor.
      *
-     * @param info imagery info
      * @return TileSource for specified ImageryInfo
      * @throws IllegalArgumentException when Imagery is not supported by layer
      */
-    protected abstract T getTileSource(ImageryInfo info);
+    protected abstract T getTileSource();
 
     protected Map<String, String> getHeaders(T tileSource) {
@@ -679,5 +679,5 @@
     private void initializeIfRequired() {
         if (tileSource == null) {
-            tileSource = getTileSource(info);
+            tileSource = getTileSource();
             if (tileSource == null) {
                 throw new IllegalArgumentException(tr("Failed to create tile source"));
Index: /trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java	(revision 11166)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java	(revision 11167)
@@ -60,5 +60,5 @@
     /**
      * Creates and returns a new TileSource instance depending on the {@link ImageryType}
-     * of the passed ImageryInfo object.
+     * of the {@link ImageryInfo} object specified in the constructor.
      *
      * If no appropriate TileSource is found, null is returned.
@@ -67,10 +67,9 @@
      *
      *
-     * @param info imagery info
      * @return a new TileSource instance or null if no TileSource for the ImageryInfo/ImageryType could be found.
      * @throws IllegalArgumentException if url from imagery info is null or invalid
      */
     @Override
-    protected TMSTileSource getTileSource(ImageryInfo info) {
+    protected TMSTileSource getTileSource() {
         return getTileSourceStatic(info, () -> {
             Main.debug("Attribution loaded, running loadAllErrorTiles");
Index: /trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java	(revision 11166)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java	(revision 11167)
@@ -81,5 +81,5 @@
 
     @Override
-    protected AbstractWMSTileSource getTileSource(ImageryInfo info) {
+    protected AbstractWMSTileSource getTileSource() {
         if (info.getImageryType() == ImageryType.WMS && info.getUrl() != null) {
             TemplatedWMSTileSource.checkUrl(info.getUrl());
Index: /trunk/src/org/openstreetmap/josm/gui/layer/WMTSLayer.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/layer/WMTSLayer.java	(revision 11166)
+++ /trunk/src/org/openstreetmap/josm/gui/layer/WMTSLayer.java	(revision 11167)
@@ -52,5 +52,5 @@
 
     @Override
-    protected WMTSTileSource getTileSource(ImageryInfo info) {
+    protected WMTSTileSource getTileSource() {
         try {
             if (info.getImageryType() == ImageryType.WMTS && info.getUrl() != null) {
