Ignore:
Timestamp:
2016-10-26T14:02:07+02:00 (7 years ago)
Author:
simon04
Message:

AbstractTileSourceLayer#getTileSource: drop method parameter, use field instead

File:
1 edited

Legend:

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

    r11125 r11167  
    216216
    217217    /**
     218     * Creates and returns a new {@link TileSource} instance depending on {@link #info} specified in the constructor.
    218219     *
    219      * @param info imagery info
    220220     * @return TileSource for specified ImageryInfo
    221221     * @throws IllegalArgumentException when Imagery is not supported by layer
    222222     */
    223     protected abstract T getTileSource(ImageryInfo info);
     223    protected abstract T getTileSource();
    224224
    225225    protected Map<String, String> getHeaders(T tileSource) {
     
    679679    private void initializeIfRequired() {
    680680        if (tileSource == null) {
    681             tileSource = getTileSource(info);
     681            tileSource = getTileSource();
    682682            if (tileSource == null) {
    683683                throw new IllegalArgumentException(tr("Failed to create tile source"));
Note: See TracChangeset for help on using the changeset viewer.