Ignore:
Timestamp:
2016-05-17T02:02:30+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S00112 - Generic exceptions should never be thrown

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/SourceEditor.java

    r10212 r10235  
    498498     * Synchronously loads available sources and returns the parsed list.
    499499     * @return list of available sources
     500     * @throws OsmTransferException in case of OSM transfer error
     501     * @throws IOException in case of any I/O error
     502     * @throws SAXException in case of any SAX error
    500503     */
    501     public final Collection<ExtendedSourceEntry> loadAndGetAvailableSources() {
    502         try {
    503             final SourceLoader loader = new SourceLoader(availableSourcesUrl, sourceProviders);
    504             loader.realRun();
    505             return loader.sources;
    506         } catch (IOException | SAXException | OsmTransferException ex) {
    507             throw new RuntimeException(ex);
    508         }
     504    public final Collection<ExtendedSourceEntry> loadAndGetAvailableSources() throws SAXException, IOException, OsmTransferException {
     505        final SourceLoader loader = new SourceLoader(availableSourcesUrl, sourceProviders);
     506        loader.realRun();
     507        return loader.sources;
    509508    }
    510509
Note: See TracChangeset for help on using the changeset viewer.