diff options
author | Roel Spilker <r.spilker@gmail.com> | 2011-01-31 23:31:59 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2011-01-31 23:31:59 +0100 |
commit | cfbfa178765b6eba85d4360943930e1e73c71cef (patch) | |
tree | 61361b5c5aff28844b82c54f4710e1a8c705bd84 /src/delombok | |
parent | 38f0e7a49e2c6a3bf59b0207469edd5e054addbf (diff) | |
download | lombok-cfbfa178765b6eba85d4360943930e1e73c71cef.tar.gz lombok-cfbfa178765b6eba85d4360943930e1e73c71cef.tar.bz2 lombok-cfbfa178765b6eba85d4360943930e1e73c71cef.zip |
Calling setCharset with null will use the system default charset (issue 181)
Diffstat (limited to 'src/delombok')
-rw-r--r-- | src/delombok/lombok/delombok/Delombok.java | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |