mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
Calling setCharset with null will use the system default charset (issue 181)
This commit is contained in:
1 parent
38f0e7a49e
commit
cfbfa17876
2 files changed
+7
-3
No files matched your search
@@ -1,15 +1,16 @@
|
||||
Lombok Changelog
|
||||
----------------
|
||||
|
||||
### v0.9.4 "Burning Emu" (edge)
|
||||
### v0.10.0 "Burning Emu" (edge)
|
||||
* FEATURE: Added support for several logging frameworks by the `@Log` annotation.
|
||||
* FEATURE: Lombok now supports post-compile transformers. [Issue #144](http://code.google.com/p/projectlombok/issues/detail?id=144)
|
||||
* FEATURE: Using `@SneakyThrows` no longer requires a runtime dependency on lombok.jar. In fact, any call to {@code Lombok.sneakyThrows(ex)} is optimized at the bytecode level and no longer requires you to actually have lombok.jar or lombok-runtime.jar on the classpath.
|
||||
* FEATURE: @XArgsConstructor, @Getter, and @ToString can now be used on enum declarations. Previously, behaviour of these annotations on enums was undefined.
|
||||
* FEATURE: @XArgsConstructor, @Getter, and @ToString can now be used on enum declarations. Previously, behaviour of these annotations on enums was undefined.
|
||||
* BUGFIX: `@Setter` and `@Getter` can now be applied to static fields again (was broken in v0.9.3 only). [Issue #136](http://code.google.com/p/projectlombok/issues/detail?id=136)
|
||||
* BUGFIX: delombok added type parameters to constructors that mirror the type's own type parameters. This resulted in delombok turning any generated constructor that takes at least 1 parameter of type 'T' into something that didn't compile, and to boot, a confusing error message ('T is not compatible with T'). This is now fixed. [Issue #140](http://code.google.com/p/projectlombok/issues/detail?id=140)
|
||||
* BUGFIX: Add null check for `@Cleanup` [Issue #154](http://code.google.com/p/projectlombok/issues/detail?id=154)
|
||||
* BUGFIX: The Eclipse source generator would place the generated code outside the class [Issue #154](http://code.google.com/p/projectlombok/issues/detail?id=155)
|
||||
* ENHANCEMENT: Setting the charset for delombok to null will now use the system default charset. [Issue #181](http://code.google.com/p/projectlombok/issues/detail?id=181)
|
||||
|
||||
### v0.9.3 "Burrowing Whale" (July 25th, 2010)
|
||||
* FEATURE: Adding `@Getter` or `@Setter` to a class is now legal and is like adding those annotations to every non-static field in it. [Issue #129](http://code.google.com/p/projectlombok/issues/detail?id=129)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user