Skip to content

Commit

Permalink
Groovify pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed May 22, 2015
1 parent cdc6a86 commit 256e1b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ class ClassFilePage
}

void save(API api, OutputStream os) {
OutputStreamWriter w = new OutputStreamWriter(os, "UTF-8");
w.write(textArea.text);
w.close();
os.withWriter('UTF-8') {
it.write(textArea.text)
}
}

// --- IndexesChangeListener --- //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void save(API api, Controller controller, Listener listener, Path path, C

// Init printer
baos.reset();
PrintStream ps = new PrintStream(baos,true,"UTF-8");
PrintStream ps = new PrintStream(baos, true, "UTF-8");
printer.setPrintStream(ps);
printer.setPreferences(preferences);

Expand Down

0 comments on commit 256e1b8

Please sign in to comment.