Jan Rieke and Roel Spilker
ae8ff327d2
[ fixes #3081 ] make CheckerFramework's This a type annotation
2022-01-09 01:36:22 +01:00
Jan Rieke and Roel Spilker
9be867ef03
[ fixes #2908 ] don't generate checkerframework's @NotCalledMethods
2022-01-07 21:10:19 +01:00
Jan Rieke and Roel Spilker
3de5d0908a
[ fixes #3070 ] fix guava type name for SuperBuilder's toBuilder
2021-12-30 23:12:24 +01:00
Reinier Zwitserloot
6d2a474e55
[ fixes #2849 ] Make ToString's onlyExplicitlyIncluded a config key.
2021-12-21 01:53:30 +01:00
Rawi01 and Roel Spilker
16fcff1b44
[ fixes #3036 ] Keep builder default initializer position
2021-12-12 02:31:59 +01:00
Rawi01 and Roel Spilker
025a76aa66
[ fixes #3040 ] Support array initializer in onX
2021-12-12 02:29:45 +01:00
Reinier Zwitserloot
3a0176fd90
[ fixes #3014 ] Detecting whether inner classes are static wouldn't work if placed inside an enum or interface.
2021-10-26 04:14:46 +02:00
Reinier Zwitserloot
c359a4b41f
[issue #3014 ] test-case that reproduces this problem.
2021-10-26 03:49:23 +02:00
Rawi01
1d7db8c4df
[ fixes #2995 ] Skip records for field defaults via config
2021-10-22 10:18:07 +02:00
Reinier Zwitserloot and GitHub
8bbac04478
Merge pull request #2998 from YonatanSherwin/fixingBeansSpecTests
...
fixing beanspec tests
2021-10-22 09:55:39 +02:00
Rawi01
553b25addd
[ fixes #2985 ] Resolve var/val only once in eclipse
2021-10-22 09:24:17 +02:00
ysherwin
890028646a
fixing beanspec tests
2021-10-19 14:01:28 +03:00
Reinier Zwitserloot
dbc67c5c2d
[ #2693 ] Review and updates for javabeans-style capitalization lombok.config
2021-10-18 20:24:37 +02:00
ysherwin
d2e8370c24
Adding a new accessors flag - javaBeansSpecCapitalization
2021-10-17 21:17:13 +03:00
Rawi01
9ef7656a35
[tests] Exclude recently added 'val' test
2021-09-27 17:53:14 +02:00
Reinier Zwitserloot and GitHub
d09d995a8e
Merge pull request #2936 from Rawi01/jdk-17
...
Add support for JDK17
2021-09-16 02:07:26 +02:00
Reinier Zwitserloot and GitHub
485c3533bb
Merge pull request #2866 from Rawi01/anonymous-inner-class
...
Handle anonymous classes properly
2021-09-16 02:04:12 +02:00
Reinier Zwitserloot and GitHub
602a68b8f8
Merge pull request #2840 from Rawi01/copy-vartype
...
Also copy vartype.type in TreeMirrorMaker
2021-09-16 02:03:29 +02:00
Rawi01 and Roel Spilker
fdcbaa033d
Replace val with native final var in Java >= 10
2021-09-06 11:58:05 +02:00
Rawi01
aab8808656
[jdk17] Ignore new strictfp warnings
2021-08-18 17:59:44 +02:00
Rawi01
0f358d38c5
[testing] Fix javac6 tests
2021-06-06 10:39:52 +02:00
Rawi01
60f575496b
[ fixes #2838 ] Handle anonymous classes properly
...
Generated qualified names (e.g. Outer.Inner) now stop at anonymous
classes instead of adding an empty part. All handlers that add static
fields/methods/types now add error messages instead of generating
invalid code.
2021-06-03 19:23:19 +02:00
Rawi01
bd00fc4b83
Copy reference types properly
2021-05-14 23:06:20 +02:00
Rawi01
a8f9b1dd35
[ fixes #2420 ] Copy vartype.type
2021-05-12 09:08:34 +02:00
Rawi01
400e0f7544
[ fixes #2624 ] Resolve variables in switch expressions
2021-04-22 07:53:25 +02:00
Reinier Zwitserloot
8e7fcac2e3
[records] [@NonNull] slight refactor to ensure any generated canonical constructor is visible to downstream APs
...
We used to remove the canonical constructor on a record that javac generates, and replace it with our own, as we put null checks in it.
However, the type mirrors and such Annotation Processors use already have the implicit canonical constructor available. Instead of
trying to remove those, let's just take the existing implicit constructor and add to that (and mark it explicit, of course).
2021-04-18 06:33:36 +02:00
Reinier Zwitserloot
415e303ac2
[pr 2702] finishing the @StandardException feature.
...
* rewritten how it works a bit: Now compatible with parent exceptions that don't have the Throwable variants.
* rewritten how it works a bit: You can now provide the full constructor only; the rest will forward to it.
* fixing up style.
* rewrite the docs.
2021-04-16 06:40:35 +02:00
Reinier Zwitserloot
2e212de523
Merge branch 'standard-exception' of git://github.com/ttzn/lombok into ttzn-standard-exception
2021-04-16 03:30:34 +02:00
Rawi01 and Roel Spilker
462aedcfc3
[ fixes #2787 ] Handle right hand side of assignment first
2021-04-01 21:54:33 +02:00
ttzn
af16ba23cd
@StandardException feature working draft
...
* move feature under experimental
* replace ProviderFor with Provides
* add doc material (to be completed)
* add author
2021-03-24 23:52:08 +01:00
ttzn
63ea3db6b7
@StandardException feature working draft
...
* annotation with javac and Eclipse handlers
* single test file
2021-03-24 22:27:25 +01:00
Reinier Zwitserloot and GitHub
30a2921e63
Merge pull request #2687 from janrieke/superBuilderConfigBuilderClassName
...
SuperBuilder: consider lombok.builder.className for builder extends clause
2021-03-24 06:24:02 +01:00
Reinier Zwitserloot
52a31bc4ae
[records] [@NonNull] eclipse impl onfthe @NonNull on record components feature.
...
All tests passing.
2021-03-24 06:22:15 +01:00
Reinier Zwitserloot
cc98adac01
[records] [javac] Putting @NonNull on a 'field' of a record now affects the compact constructors, generating one if need be.
2021-03-23 05:19:24 +01:00
Reinier Zwitserloot
3400f66fa7
[deps] pushing ASM to 9.1, and ASM opcode compat levels to ASM9, as we need the support for records
2021-03-22 11:38:56 +01:00
Reinier Zwitserloot
bcd05a01b1
Merge branch 'records'
...
# Conflicts:
# src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
# src/core/lombok/eclipse/handlers/HandleBuilder.java
# src/core/lombok/eclipse/handlers/HandleData.java
# src/core/lombok/eclipse/handlers/HandleNonNull.java
# src/core/lombok/eclipse/handlers/HandleSuperBuilder.java
# src/core/lombok/javac/handlers/HandleBuilder.java
# src/core/lombok/javac/handlers/HandleNonNull.java
# src/core/lombok/javac/handlers/HandleSuperBuilder.java
# test/core/src/lombok/RunTestsViaEcj.java
2021-03-22 08:03:42 +01:00
Reinier Zwitserloot
ade900b82b
[testing] fixed an error (I probably introduced this in the typofix earlier) in a test file.
2021-03-21 20:24:40 +01:00
Reinier Zwitserloot and GitHub
8e23c10a99
Merge pull request #2725 from md-5/master
...
[fixes #2724 ] Increase priority of Builder annotation removal
2021-03-21 05:24:46 +01:00
Reinier Zwitserloot
2d2f67ea4a
[trivial] [typofix]
2021-03-21 05:19:20 +01:00
Reinier Zwitserloot and GitHub
e9e16a355f
Merge pull request #2772 from janrieke/superBuilderNPEwithSingular
...
[fixes #2701 ] fix NPE on customized SuperBuilder with Singular
2021-03-21 05:12:12 +01:00
Reinier Zwitserloot and GitHub
38faf6d350
Merge pull request #2770 from janrieke/superBuilderNPEinConstructorExists
...
[fixes #2704 ] SuperBuilder: avoid NPE on existing constructors
2021-03-21 05:09:13 +01:00
md_5
70951d4dd7
[ fixes #2724 ] Increase priority of Builder annotation removal
...
Otherwise they may run after `HandleDelegate`. This is problematic as
`HandleDelegate` parses the compulation unit and `@Builder` may contain imports
(eg `AccessLevel`) that were already removed by other processors, eg `@Getter`.
2021-03-20 13:18:50 +11:00
Roel Spilker
334167bd22
[jdk16] Suddenly, Stream has a default method toList :-)
2021-03-19 03:35:59 +01:00
Reinier Zwitserloot
e18ae4328e
[testing] fixing a typo in a test file
2021-03-18 23:19:07 +01:00
Reinier Zwitserloot
a49aec582b
[testing] ant test.javac6 now passes. yay.
2021-03-14 03:48:05 +01:00
Reinier Zwitserloot
c979ee9ddf
[testing] now easier to identify what failed, by name of test case
...
test case names now include idempotent/javac/ecj/prettyprint as a prefix to the test case filename.
2021-03-13 18:19:35 +01:00
Reinier Zwitserloot
e8cd744d3b
[superbuilder] toBuilder + singular + javac6 was broken
...
superbuilder generated the node `x.pluralName(plural == null ? Collections.emptyList() : plural)`.
java6 is not smart enough to infer the appropriate generics for the emptyList() call.
Fixed by always specifying the needed type explicitly: Collections.<String>emptyList();
2021-03-13 04:53:44 +01:00
Reinier Zwitserloot
c1bf4ec3b6
[trivial] just fixing line endings - no other changes
2021-03-13 04:31:51 +01:00
Reinier Zwitserloot
bf0de8b678
[testing] marking down all jackson related tests as j8+ only
...
The jackson dep we need for testing is too new a class file to run on j6, stubbing it out too much effort.
Odds we find a bug specifically because this stuff fails on java6/7 are low, and I'm okay with supporting
6/7 a little less well.
2021-03-13 04:25:24 +01:00
Reinier Zwitserloot
a2ebb4ce36
[test] work in progress: Make test.javac6 pass all tests.
...
The `test.javac6` job causes a ton of errors because many tests use java8+ features. Marking them off as java8+ targeted only.
2021-03-13 04:20:47 +01:00