Changeset 16581 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
- Timestamp:
- 2009-07-19T18:01:42+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r16007 r16581 78 78 urlConn.connect(); 79 79 if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) { 80 throw (IOException)new IOException("Cannot get Cadastre cookie.");80 throw new IOException("Cannot get Cadastre cookie."); 81 81 } 82 82 BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream())); … … 148 148 urlConn.connect(); 149 149 if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) { 150 throw (IOException)new IOException("Cannot open Cadastre interface. GET response:"+urlConn.getResponseCode());150 throw new IOException("Cannot open Cadastre interface. GET response:"+urlConn.getResponseCode()); 151 151 } 152 152 BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream())); … … 330 330 urlConn.connect(); 331 331 if (urlConn.getResponseCode() != HttpURLConnection.HTTP_OK) { 332 throw (IOException)new IOException("Cannot get Cadastre response.");332 throw new IOException("Cannot get Cadastre response."); 333 333 } 334 334 BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream())); … … 371 371 372 372 public void cancel() { 373 Main.pleaseWaitDlg.currentAction.setText(tr("Aborting..."));374 373 if (urlConn != null) { 375 374 urlConn.setConnectTimeout(1);
Note:
See TracChangeset
for help on using the changeset viewer.