Changeset 11453 in josm for trunk/src/org
- Timestamp:
- 2017-01-12T01:38:04+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r11447 r11453 1040 1040 } 1041 1041 1042 private Nth(int nth, boolean modulo) throws ParseError{1042 private Nth(int nth, boolean modulo) { 1043 1043 this.nth = nth; 1044 1044 this.modulo = modulo; -
trunk/src/org/openstreetmap/josm/data/imagery/GetCapabilitiesParseHelper.java
r11018 r11453 2 2 package org.openstreetmap.josm.data.imagery; 3 3 4 import java.io.IOException;5 4 import java.io.InputStream; 6 5 import java.net.MalformedURLException; … … 75 74 * @param in InputStream with pointing to GetCapabilities XML stream 76 75 * @return safe XMLStreamReader, that is not validating external entities, nor loads DTD's 77 * @throws IOException if any I/O error occurs78 76 * @throws XMLStreamException if any XML stream error occurs 79 77 */ 80 public static XMLStreamReader getReader(InputStream in) throws IOException,XMLStreamException {78 public static XMLStreamReader getReader(InputStream in) throws XMLStreamException { 81 79 XMLInputFactory factory = XMLInputFactory.newFactory(); 82 80 // do not try to load external entities, nor validate the XML -
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java
r11438 r11453 2 2 package org.openstreetmap.josm.data.imagery; 3 3 4 import java.io.IOException;5 4 import java.util.Map; 6 5 import java.util.concurrent.ThreadPoolExecutor; … … 60 59 * @param readTimeout to remote resource 61 60 * @param headers HTTP headers to be sent along with request 62 * @throws IOException when cache initialization fails63 61 */ 64 62 public TMSCachedTileLoader(TileLoaderListener listener, ICacheAccess<String, BufferedImageCacheEntry> cache, 65 int connectTimeout, int readTimeout, Map<String, String> headers) throws IOException{63 int connectTimeout, int readTimeout, Map<String, String> headers) { 66 64 CheckParameterUtil.ensureParameterNotNull(cache, "cache"); 67 65 this.cache = cache; -
trunk/src/org/openstreetmap/josm/data/imagery/WMSCachedTileLoader.java
r11438 r11453 2 2 package org.openstreetmap.josm.data.imagery; 3 3 4 import java.io.IOException;5 4 import java.util.Map; 6 5 … … 25 24 */ 26 25 public static final IntegerProperty THREAD_LIMIT = new IntegerProperty("imagery.wms.loader.maxjobs", 3); 26 27 27 /** 28 28 * Creates a TileLoader with separate WMS downloader. … … 33 33 * @param readTimeout from tile source 34 34 * @param headers to be sent with requests 35 * @throws IOException when there is a problem creating cache repository36 35 */ 37 36 public WMSCachedTileLoader(TileLoaderListener listener, ICacheAccess<String, BufferedImageCacheEntry> cache, 38 int connectTimeout, int readTimeout, Map<String, String> headers) throws IOException{37 int connectTimeout, int readTimeout, Map<String, String> headers) { 39 38 40 39 super(listener, cache, connectTimeout, readTimeout, headers); -
trunk/src/org/openstreetmap/josm/data/oauth/SignpostAdapters.java
r10201 r11453 108 108 109 109 @Override 110 public InputStream getMessagePayload() throws IOException{110 public InputStream getMessagePayload() { 111 111 return null; 112 112 } … … 136 136 137 137 @Override 138 public int getStatusCode() throws IOException{138 public int getStatusCode() { 139 139 return response.getResponseCode(); 140 140 } 141 141 142 142 @Override 143 public String getReasonPhrase() throws Exception{143 public String getReasonPhrase() { 144 144 return response.getResponseMessage(); 145 145 } -
trunk/src/org/openstreetmap/josm/data/preferences/PreferencesReader.java
r10306 r11453 52 52 * @param defaults true when reading from the cache file for default preferences, 53 53 * false for the regular preferences config file 54 * @throws IOException if any I/O error occurs 55 * @throws XMLStreamException if any XML stream error occurs 56 */ 57 public PreferencesReader(File file, boolean defaults) throws IOException, XMLStreamException { 54 */ 55 public PreferencesReader(File file, boolean defaults) { 58 56 this.defaults = defaults; 59 57 this.reader = null; … … 66 64 * @param defaults true when reading from the cache file for default preferences, 67 65 * false for the regular preferences config file 68 * @throws XMLStreamException if any XML stream error occurs 69 */ 70 public PreferencesReader(Reader reader, boolean defaults) throws XMLStreamException { 66 */ 67 public PreferencesReader(Reader reader, boolean defaults) { 71 68 this.defaults = defaults; 72 69 this.reader = reader; -
trunk/src/org/openstreetmap/josm/io/Capabilities.java
r10632 r11453 242 242 243 243 @Override 244 public void startDocument() throws SAXException{244 public void startDocument() { 245 245 capabilities = new Capabilities(); 246 246 } 247 247 248 248 @Override 249 public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException{249 public void startElement(String namespaceURI, String localName, String qName, Attributes atts) { 250 250 for (int i = 0; i < atts.getLength(); i++) { 251 251 capabilities.put(qName, atts.getQName(i), atts.getValue(i)); -
trunk/src/org/openstreetmap/josm/io/NoteReader.java
r11100 r11453 202 202 * Initializes the reader with a given InputStream 203 203 * @param source - InputStream containing Notes XML 204 * @throws IOException if any I/O error occurs 205 */ 206 public NoteReader(InputStream source) throws IOException { 204 */ 205 public NoteReader(InputStream source) { 207 206 this.inputSource = new InputSource(source); 208 207 } … … 211 210 * Initializes the reader with a string as a source 212 211 * @param source UTF-8 string containing Notes XML to parse 213 * @throws IOException if any I/O error occurs 214 */ 215 public NoteReader(String source) throws IOException { 212 */ 213 public NoteReader(String source) { 216 214 this.inputSource = new InputSource(new ByteArrayInputStream(source.getBytes(StandardCharsets.UTF_8))); 217 215 }
Note:
See TracChangeset
for help on using the changeset viewer.