Ignore:
Timestamp:
2017-01-29T23:58:49+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:ACEM_ABSTRACT_CLASS_EMPTY_METHODS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/CachedAttributionBingAerialTileSource.java

    r11288 r11510  
    44import java.io.IOException;
    55import java.io.StringReader;
     6import java.net.MalformedURLException;
    67import java.net.URL;
    78import java.util.List;
     
    1415import org.openstreetmap.josm.gui.util.GuiHelper;
    1516import org.openstreetmap.josm.io.CacheCustomContent;
     17import org.openstreetmap.josm.io.OnlineResource;
    1618import org.openstreetmap.josm.tools.HttpClient;
    1719import org.xml.sax.InputSource;
     
    5860            return r.getBytes("UTF-8");
    5961        }
     62
     63        @Override
     64        protected void checkOfflineAccess() {
     65            try {
     66                String attributionUrl = getAttributionUrl().toExternalForm();
     67                OnlineResource.ALL.checkOfflineAccess(attributionUrl, attributionUrl);
     68            } catch (MalformedURLException e) {
     69                Main.error(e);
     70            }
     71        }
    6072    }
    6173
Note: See TracChangeset for help on using the changeset viewer.