109 Commits
Author SHA1 Message Date
snowykte0426 ecf421849c Fix builder class name annotation collision 2026-08-21 03:13:42 +02:00
Sebastian Mandrean e6567b6621 test: Add Jackson 3 test cases and version ambiguity warnings
Add JacksonizedAccessorsJackson3 test case verifying that @Jacksonized
with jacksonVersion=3 emits the correct annotations.

Add expected warning messages for tests that have both Jackson 2 and 3
on the classpath without explicit version configuration, and fix
JacksonizedSuperBuilderWithJsonDeserialize message expectations.
2026-04-22 00:49:30 +02:00
Reinier Zwitserloot 1edca70420 [test][@Jacksonized] Test emission of warning when not choosing jackson version. 2026-02-06 02:05:58 +01:00
Rawi01 93e9bebf0a [fixes #3954][fixes #3947] Suppress messages during resolution 2025-09-25 18:38:12 +02:00
Rawi01 5caea32510 [fixes #3761] Update annotation value index 2024-10-19 11:49:29 +02:00
Rawi01 4aa58fb211 Update ecj message line numbers 2024-10-19 11:47:36 +02:00
Rawi01 02a89cf7fe Check exact message line numbers in tests 2024-10-19 11:47:35 +02:00
Rawi01 52283d71cc [fixes #3665] Add cast for null arguments 2024-05-24 00:58:35 +02:00
Rawi01 3e57b2a0b4 [fixes #2848] Support onX.flagUsage configuration key 2024-03-21 20:29:56 +01:00
Rawi01 566ef72949 [fixes #3225] Handle ambiguous extension methods 2024-03-18 00:14:06 +01:00
Reinier Zwitserloot be0ca58fc3 Merge branch 'locked' 2023-09-25 06:22:24 +02:00
Reinier Zwitserloot 566f01be47 [review] [#3506] PR reviewed; passes review and passes tests. 2023-09-25 06:19:36 +02:00
Reinier Zwitserloot 67cd7a6218 Merge pull request #3494 from Rawi01/enum-getter
Remove javac support for getter on enum members
2023-09-17 12:46:00 +02:00
Rawi01 1e929c934a [fixes #3248] Add support for jakarta generated annotation 2023-09-15 23:12:46 +02:00
Rawi01 da004063e2 [fixes #3427] Remove javac support for getter on enum members 2023-08-31 20:20:17 +02:00
Reinier Zwitserloot b7c6108f3a Merge pull request #3422 from Rawi01/helper
Support Helper in method
2023-08-04 02:01:46 +02:00
Rawi01 37ac1bf4cd [fixes #3370] Support Helper in method 2023-05-05 22:48:19 +02:00
Pim van der Loos cb25fce7aa Add tests for Locked annotations 2023-04-18 18:07:53 +02:00
Rawi01 4edd8a42d6 [fixes #3402] Delay replacement of extension methods in arguments 2023-04-16 14:14:26 +02:00
Reinier Zwitserloot 261758b444 [implements #1456] accessors can now be made final via @Accessors. 2022-02-08 06:02:05 +01:00
Rawi01 553b25addd [fixes #2985] Resolve var/val only once in eclipse 2021-10-22 09:24:17 +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
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 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 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
Rawi01 0106746e60 [fixes #2752] Save problem handler state for postponed error handling 2021-02-17 09:41:08 +01:00
Reinier Zwitserloot 14cce76805 [builder] big refactor: Fixing CheckerFramework features + all params now in an object
These handlers had methods with humongous argument lists, and they needed to grow even more in order
to accommodate some new needs to properly implement checkerframework (where annos can be type-use
based, which means they were being put in the wrong place.

void foo(com.foo.@X Bar paramName) // correct
void foo(@X com.foo.Bar paramName) // wrong

For example, the CalledMethod annotation is a type-use annotation.

This commit covers both that refactor and fixing checkerframework generation.
2020-10-03 23:55:10 +02:00
Rawi01 0064c53427 Add record support 2020-09-10 10:32:14 +02:00
Rawi01 4d2ae4ba32 [bugfix] Fix suppressBaseMethods in ecj/eclipse 2020-08-20 09:29:49 +02:00
Reinier Zwitserloot 4fdcdd126a [test] this covers more eclipse versions 2020-07-10 02:57:45 +02:00
Rawi01 84556ebb00 [fixes #2433] Add config key to turn off @SuppressWarnings("all") 2020-07-02 23:15:14 +02:00
Rawi01 9425e99b49 [fixes #2469] Support static reference as logger topic 2020-07-02 23:08:41 +02:00
Rawi01 a3d71d6847 Fix broken test cases 2020-06-25 23:06:10 +02:00
Jan Rieke 8be4b0ffe6 @Jacksonized: modify builders that they can be used by Jackson 2020-03-03 13:01:48 +01:00
Reinier Zwitserloot 89f98da78d [fixes #678] @Synchronize an instance method on static variable no longer emits a warning. 2020-02-14 01:21:24 +01:00
Reinier Zwitserloot 2e06cb3ff1 [#2355] fixed tests for clashes in the generics for superbuilder 2020-02-06 22:06:21 +01:00
Jan Rieke 4a34ed75b4 avoid more name clashes for builder type param; fixes #2297 2020-02-06 16:05:56 +01:00
Reinier Zwitserloot e95680a767 [issue #2221] [issue #788] Lombok now adds nullity annotations.
Which 'flavour' is defined in lombok.config; applied to toString, equals, canEqual, and plural-form of `@Singular`.
2020-01-28 16:21:39 +01:00
Reinier Zwitserloot 9ad2bd563b [fixes #788] lombok generated equals method plus a non-null-by-default annotation no longer clash. 2020-01-08 01:06:35 +01:00
Caleb Brinkman ffb299730e Fix more broken tests 2019-09-19 16:05:17 -05:00
Reinier Zwitserloot c11edbf032 [With] renaming lombok.experimental.Wither to lombok.experimental.With 2019-08-27 00:15:47 +02:00
Reinier Zwitserloot 15df143df6 [checkerframework]
A bit of a shadow feature because the checker framework folks need to do some work on their side.
this update makes lombok generate a few checker framework annotations (if configured to do so)
which let the checker framework add warnings and errors for example if you misuse builders, or ignore
the return values of withers, etc.
2019-08-22 22:42:48 +02:00
Bulgakov Alexander a899ffcbca [val]. more test cases 2019-05-25 00:15:09 +03:00
Bulgakov Alexander 1fec035aa5 #1976. [@val] improved raw generic type inference by eclipse compiler. 2019-05-08 23:34:37 +03:00
Roel Spilker 720b7cbc92 [i1996] add test for warnings on non-existing fields 2019-01-14 23:41:58 +01:00
Reinier Zwitserloot 3d432c38d0 code impl of FieldNameConstants rewrite + test updates for it 2018-07-29 16:37:21 +02:00
Reinier Zwitserloot b8e85f5dc7 FieldNameConstants now defaults to having a prefix ‘FIELD_’, which can be configured both on the annotation itself and via a config key. This totally breaks compatibility with the previous lombok release, but, hey, it’s in experimental and it’s been one week. This is better. 2018-06-04 23:36:10 +02:00
Roel Spilker b081e6c968 Allow onMethod and onParam in @Getter and @Setter if it is put on a type 2018-04-23 23:26:51 +02:00
Reinier Zwitserloot f540335ef9 [Fixes #1656] Lombok would silently do the wrong thing when using references to public static final String fields, instead of actual string literals, there where you can specify strings in lombok annotation parameters, such as @ToString(of = MyClass.CONSTANT_FIELD). We can’t really fix it, but at least now lombok will error when you do that and describe in detail what’s going wrong. 2018-04-17 04:19:37 +02:00