Ignore:
Timestamp:
2014-09-23T17:09:36+02:00 (10 years ago)
Author:
donvip
Message:

[josm_commandline] code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java

    r30677 r30678  
    550550                final OutputStream outputStream = tp.process.getOutputStream();
    551551                PrintWriter printWriter = null;
    552                 try { printWriter = new PrintWriter(new OutputStreamWriter(outputStream, "utf-8")); }
    553                 catch (Exception e) {e.printStackTrace();}
     552                try {
     553                    printWriter = new PrintWriter(new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
     554                } catch (Exception e) {
     555                    Main.error(e);
     556                }
    554557                final OsmWriter osmWriter = OsmWriterFactory.createOsmWriter(printWriter, true, null);
    555558                Collection<OsmPrimitive> refObjects = currentCommand.getDepsObjects();
Note: See TracChangeset for help on using the changeset viewer.