Changeset 14367 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2018-10-26T22:12:10+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r14214 r14367 11 11 import java.io.IOException; 12 12 import java.net.MalformedURLException; 13 import java.nio.file.InvalidPathException; 13 14 import java.util.Collection; 14 15 import java.util.Collections; … … 169 170 * @throws IOException if any I/O error occurs while contacting the WMS endpoint 170 171 * @throws WMSGetCapabilitiesException if the WMS getCapabilities request fails 172 * @throws InvalidPathException if a Path object cannot be constructed for the capabilities cached file 171 173 */ 172 174 protected static ImageryInfo getWMSLayerInfo(ImageryInfo info) throws IOException, WMSGetCapabilitiesException { -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r14184 r14367 7 7 import java.io.IOException; 8 8 import java.net.MalformedURLException; 9 import java.nio.file.InvalidPathException; 9 10 import java.util.Collection; 10 11 import java.util.List; … … 88 89 formats.setModel(new DefaultComboBoxModel<>(wmsFormats.toArray(new String[0]))); 89 90 formats.setSelectedItem(wms.getPreferredFormat()); 90 } catch (MalformedURLException ex1) { 91 } catch (MalformedURLException | InvalidPathException ex1) { 91 92 Logging.log(Logging.LEVEL_ERROR, ex1); 92 93 JOptionPane.showMessageDialog(getParent(), tr("Invalid service URL."), -
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r14149 r14367 16 16 import java.nio.charset.StandardCharsets; 17 17 import java.nio.file.Files; 18 import java.nio.file.InvalidPathException; 18 19 import java.nio.file.StandardCopyOption; 19 20 import java.security.MessageDigest; … … 219 220 * @return the InputStream 220 221 * @throws IOException when the resource with the given name could not be retrieved 222 * @throws InvalidPathException if a Path object cannot be constructed from the inner file path 221 223 */ 222 224 public InputStream getInputStream() throws IOException { -
trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java
r13883 r14367 10 10 import java.net.MalformedURLException; 11 11 import java.net.URL; 12 import java.nio.file.InvalidPathException; 12 13 import java.util.ArrayList; 13 14 import java.util.Collection; … … 133 134 * @throws IOException when connection error when fetching get capabilities document 134 135 * @throws WMSGetCapabilitiesException when there are errors when parsing get capabilities document 136 * @throws InvalidPathException if a Path object cannot be constructed for the capabilities cached file 135 137 */ 136 138 public WMSImagery(String url) throws IOException, WMSGetCapabilitiesException { … … 144 146 * @throws IOException when connection error when fetching get capabilities document 145 147 * @throws WMSGetCapabilitiesException when there are errors when parsing get capabilities document 148 * @throws InvalidPathException if a Path object cannot be constructed for the capabilities cached file 146 149 */ 147 150 public WMSImagery(String url, Map<String, String> headers) throws IOException, WMSGetCapabilitiesException {
Note:
See TracChangeset
for help on using the changeset viewer.