mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 06:17:44 +00:00
[fixes #2140] when pretty-printing (delombok) varargs, only turn array brackets into varargs for the actual top-level type, not for arrays inside the type, such as an array as generics component.
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -4,6 +4,7 @@ Lombok Changelog
|
||||
### v1.18.9 "Edgy Guinea Pig"
|
||||
* ENHANCEMENT: Thanks to Mark Haynes, the `staticConstructor` will now also be generated if a (private) constructor already exists. [Issue #2100](https://github.com/rzwitserloot/lombok/issues/2100)
|
||||
* ENHANCEMENT: `val` is now capable of decoding the type of convoluted expressions (particularly if the right hand side involves lambdas and conditional (ternary) expressions). [Pull Request #2109](https://github.com/rzwitserloot/lombok/pull/2109) with thanks to Alexander Bulgakov.
|
||||
* BUGFIX: Delombok would turn something like `List<byte[]>...` in a method parameter to `List<byte...>...` [Issue #2140](https://github.com/rzwitserloot/lombok/issues/2140)
|
||||
|
||||
### v1.18.8 (May 7th, 2019)
|
||||
* FEATURE: You can now configure `@FieldNameConstants` to `CONSTANT_CASE` the generated constants, using a `lombok.config` option. See the [FieldNameConstants documentation](https://projectlombok.org/features/experimental/FieldNameConstants). [Issue #2092](https://github.com/rzwitserloot/lombok/issues/2092).
|
||||
|
||||
@@ -692,7 +692,10 @@ public class PrettyPrinter extends JCTree.Visitor {
|
||||
@Override public void visitTypeApply(JCTypeApply tree) {
|
||||
print(tree.clazz);
|
||||
print("<");
|
||||
boolean temp = innermostArrayBracketsAreVarargs;
|
||||
innermostArrayBracketsAreVarargs = false;
|
||||
print(tree.arguments, ", ");
|
||||
innermostArrayBracketsAreVarargs = temp;
|
||||
print(">");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user