From cfbfa178765b6eba85d4360943930e1e73c71cef Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 31 Jan 2011 23:31:59 +0100 Subject: Calling setCharset with null will use the system default charset (issue 181) --- src/delombok/lombok/delombok/Delombok.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/delombok/lombok') diff --git a/src/delombok/lombok/delombok/Delombok.java b/src/delombok/lombok/delombok/Delombok.java index 7e8220a0..a869f66d 100644 --- a/src/delombok/lombok/delombok/Delombok.java +++ b/src/delombok/lombok/delombok/Delombok.java @@ -202,7 +202,10 @@ public class Delombok { } public void setCharset(String charsetName) throws UnsupportedCharsetException { - + if (charsetName == null) { + charset = Charset.defaultCharset(); + return; + } charset = Charset.forName(charsetName); } -- cgit