aboutsummaryrefslogtreecommitdiff
path: root/src/delombok/lombok
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2011-01-31 23:31:59 +0100
committerRoel Spilker <r.spilker@gmail.com>2011-01-31 23:31:59 +0100
commitcfbfa178765b6eba85d4360943930e1e73c71cef (patch)
tree61361b5c5aff28844b82c54f4710e1a8c705bd84 /src/delombok/lombok
parent38f0e7a49e2c6a3bf59b0207469edd5e054addbf (diff)
downloadlombok-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/lombok')
-rw-r--r--src/delombok/lombok/delombok/Delombok.java5
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);
}