Changeset 10234 in josm for trunk/src/org/openstreetmap/josm/actions
- Timestamp:
- 2016-05-17T00:43:47+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r10062 r10234 42 42 * @author imi 43 43 */ 44 public class AboutAction extends JosmAction {44 public final class AboutAction extends JosmAction { 45 45 46 46 /** … … 130 130 displayErrorMessage(ta, tr("Failed to locate resource ''{0}''.", filePath)); 131 131 } else { 132 try {133 BufferedReader br = new BufferedReader(new InputStreamReader(is, "UTF-8"));132 try (InputStreamReader reader = new InputStreamReader(is, "UTF-8"); 133 BufferedReader br = new BufferedReader(reader)) { 134 134 String line; 135 135 while ((line = br.readLine()) != null) { 136 136 ta.append(line+'\n'); 137 137 } 138 br.close();139 138 } catch (IOException e) { 140 139 Main.warn(e); -
trunk/src/org/openstreetmap/josm/actions/UploadSelectionAction.java
r9067 r10234 341 341 // our local dataset includes a deleted parent of a primitive we want 342 342 // to delete. Include this parent in the collection of uploaded primitives 343 //344 343 if (myDeletedParent != null && myDeletedParent.isDeleted()) { 345 344 if (!toUpload.contains(myDeletedParent)) { … … 352 351 } 353 352 } 354 } catch ( Exception e) {353 } catch (OsmTransferException e) { 355 354 if (canceled) 356 355 // ignore exception
Note:
See TracChangeset
for help on using the changeset viewer.