Changeset 10952 in josm
- Timestamp:
- 2016-09-04T02:22:44+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r10920 r10952 9 9 import java.awt.Toolkit; 10 10 import java.io.File; 11 import java.io.FileOutputStream;12 11 import java.io.IOException; 13 import java.io.OutputStreamWriter;14 12 import java.io.PrintWriter; 15 13 import java.io.Reader; … … 596 594 } 597 595 598 try (PrintWriter out = new PrintWriter(new OutputStreamWriter( 599 new FileOutputStream(prefFile + "_tmp"), StandardCharsets.UTF_8), false)) { 600 PreferencesWriter writer = new PreferencesWriter(out, false, defaults); 596 try (PreferencesWriter writer = new PreferencesWriter( 597 new PrintWriter(new File(prefFile + "_tmp"), StandardCharsets.UTF_8.name()), false, defaults)) { 601 598 writer.write(settings); 602 599 } -
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r10880 r10952 6 6 import java.io.File; 7 7 import java.io.FileNotFoundException; 8 import java.io.FileOutputStream;9 8 import java.io.IOException; 10 import java.io.OutputStreamWriter;11 9 import java.io.PrintWriter; 12 10 import java.nio.charset.StandardCharsets; … … 206 204 207 205 public static void saveIgnoredErrors() { 208 try (PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream( 209 new File(getValidatorDir(), "ignorederrors")), StandardCharsets.UTF_8), false)) { 206 try (PrintWriter out = new PrintWriter(new File(getValidatorDir(), "ignorederrors"), StandardCharsets.UTF_8.name())) { 210 207 for (String e : ignoredErrors) { 211 208 out.println(e); -
trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java
r10616 r10952 8 8 import java.io.ByteArrayInputStream; 9 9 import java.io.File; 10 import java.io.FileOutputStream;11 10 import java.io.FilenameFilter; 12 11 import java.io.IOException; 13 12 import java.io.InputStream; 14 import java.io.OutputStreamWriter;15 13 import java.io.PrintWriter; 16 14 import java.net.MalformedURLException; … … 236 234 File cacheFile = createSiteCacheFile(pluginDir, site); 237 235 getProgressMonitor().subTask(tr("Writing plugin list to local cache ''{0}''", cacheFile.toString())); 238 try (PrintWriter writer = new PrintWriter( new OutputStreamWriter(new FileOutputStream(cacheFile), StandardCharsets.UTF_8))) {236 try (PrintWriter writer = new PrintWriter(cacheFile, StandardCharsets.UTF_8.name())) { 239 237 writer.write(list); 240 238 writer.flush();
Note:
See TracChangeset
for help on using the changeset viewer.