Changeset 5874 in josm for trunk/src/org/openstreetmap/josm/gui/help
- Timestamp:
- 2013-04-16T19:57:43+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/help
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r5816 r5874 51 51 import org.openstreetmap.josm.tools.ImageProvider; 52 52 import org.openstreetmap.josm.tools.OpenBrowser; 53 import org.openstreetmap.josm.tools.Utils; 53 54 import org.openstreetmap.josm.tools.WindowGeometry; 54 55 … … 141 142 css.append("\n"); 142 143 } 143 reader.close();144 144 } catch(Exception e) { 145 145 System.err.println(tr("Failed to read CSS file ''help-browser.css''. Exception is: {0}", e.toString())); 146 146 e.printStackTrace(); 147 147 return ss; 148 } finally { 149 Utils.close(reader); 148 150 } 149 151 ss.addRule(css.toString()); -
trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java
r5868 r5874 62 62 throw ex; 63 63 } finally { 64 if (in != null) { 65 try { 66 in.close(); 67 } catch(IOException e) { 68 // ignore 69 } 70 } 64 Utils.close(in); 71 65 } 72 66 }
Note:
See TracChangeset
for help on using the changeset viewer.