Commit Graph
942 Commits
Author SHA1 Message Date
Reinier Zwitserloot 04b73406d0 [trivial] fixing some outdated tests (tests were broken, not lombok). 2026-08-21 03:14:01 +02:00
snowykte0426 ecf421849c Fix builder class name annotation collision 2026-08-21 03:13:42 +02:00
Roel Spilker 6c5295bc38 Update copyright year 2026-08-21 02:59:37 +02:00
Reinier Zwitserloot 4cfdf21430 [test] Fix tests to reflect updates to @CheckReturnValue feature. 2026-08-21 02:57:22 +02:00
Tim te Beek dc1ba17b4d [feature][@CheckReturnValue] Replace boolean opt-in with enum-valued lombok.checkReturnValueAnnotation config key.
Per PR #4013 review, swap the boolean `lombok.addCheckReturnValueAnnotation`
for an enum-valued `lombok.checkReturnValueAnnotation` (values: `none`,
`lombok`; default: `none`). This leaves room for additional flavors
(`jetbrains`, `errorprone`, `custom: FQN`) in future releases without
another key rename, and for flipping the default to `lombok` after a
release cycle or two.

# Conflicts:
#	doc/changelog.markdown
2026-08-21 02:41:59 +02:00
Tim te Beek 14f52226b6 [feature][@CheckReturnValue] Make @CheckReturnValue opt-in rather than opt-out to avoid breaking existing tests. 2026-08-21 02:41:59 +02:00
Tim te Beek cdfb0f551e [feature][@CheckReturnValue] Add @lombok.CheckReturnValue to generated methods where the return value should not be ignored.
Adds the annotation to @With, @WithBy, @Builder.build(), and @SuperBuilder.build() methods. Controlled via lombok.addCheckReturnValueAnnotation config key (default: true). Static analysis tools (Error Prone, IntelliJ, SpotBugs) recognize @CheckReturnValue by simple name and will warn when the return value is discarded.
2026-08-21 02:41:59 +02:00
Roel Spilker 277c7bf34a Allow listy configuration keys to use = to force a list to a single value 2026-08-21 01:18:05 +02:00
Reinier Zwitserloot 6ef04d9606 [old-cruft] Removed old lombok.Delegate (it's in experimental now) and lombok.experimental.Wither (it's in main now). 2026-08-07 01:11:31 +02:00
Reinier Zwitserloot 2e177996fb [promotion] SuperBuilder promoted to main package. 2026-08-07 01:11:31 +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
Jan Rieke ca16c5b9f6 fix test 2026-04-21 23:08:35 +02:00
Jan Rieke 0cc5e054a3 ecj: fix duplicate jackson annotation copying when generating setter 2026-04-21 23:08:35 +02:00
Rawi01 4a0f85674e Hide generated nodes from FoldingVisitor 2026-04-21 23:00:57 +02:00
Reinier Zwitserloot b68af6e415 Merge pull request #4024 from ralemanc/master
Fix Jacksonized stops generating JsonProperty/JsonIgnore after first manual annotation (fluent=true)
2026-04-21 22:35:38 +02:00
Reinier Zwitserloot a67306f2e5 [jdk26] Out of an abundance of caution: Added a test to confirm that lombok does not interact with primitive types in switch pattern matching. Indeed it doesn't. 2026-04-08 01:35:50 +02:00
Reinier Zwitserloot bc86bfde63 [JDK26] javac 26 updated how var declarations are stored. Fixed the problem and added a test to confirm. 2026-04-08 01:35:50 +02:00
Rafa eb577e7f41 Revert "//version 8: Jackson deps are at least Java7+."
This reverts commit 98deec6b48.
2026-03-20 13:02:28 +01:00
Rafa 98deec6b48 //version 8: Jackson deps are at least Java7+. 2026-03-20 12:45:20 +01:00
Rafa 89abb18004 Adding Test with the expected behavior 2026-03-19 00:01:47 +01:00
Rafa 24cf30face Adding Test with the current behavior 2026-03-18 23:31:48 +01:00
Reinier Zwitserloot 1edca70420 [test][@Jacksonized] Test emission of warning when not choosing jackson version. 2026-02-06 02:05:58 +01:00
Reinier Zwitserloot 12572fcbd2 [test] Adjusted tests to the new 'jackson version is a list' config key setup. 2026-02-06 01:50:25 +01:00
Reinier Zwitserloot d62b2d5b80 Merge branch 'master' into cachescrubber-gh-3950
# Conflicts:
#	src/core/lombok/eclipse/handlers/HandleJacksonized.java
#	src/core/lombok/javac/handlers/HandleJacksonized.java
2026-02-06 00:22:11 +01:00
Reinier Zwitserloot f49f0fe78d [test] Remove tests for deprecated @Logger(access = MODULE). They're deprecated:
Dealing with suppress warnings when trying to compare output of a delombok process is hard enough as is.
If someone somehow uses MODULE, the code will probably work, the deprecation warning tells you to cut it out,
and if it breaks, I'm sure somebody will report a bug and we'll fix it maybe one fine day.
2026-02-05 23:48:44 +01:00
Reinier Zwitserloot ee9a52da6e Merge pull request #3956 from Rawi01/compiler-message-suppressor
Suppress messages during resolution
2026-01-29 22:10:24 +01:00
Liam Pace f5cf267d02 Add fields with @JsonIgore to test case 2026-01-29 22:04:21 +01:00
Liam Pace e3c9e3d9ff Add transforms to include checks for transient field 2025-11-21 13:50:00 -05:00
Rawi01 93e9bebf0a [fixes #3954][fixes #3947] Suppress messages during resolution 2025-09-25 18:38:12 +02:00
Rawi01 e8fb46179f [trivial] Add clarification for excluded tests 2025-09-25 16:55:52 +02:00
Liam Pace da5e18de59 rename LoggerXslf4jAccess* classes to match file name 2025-09-25 16:30:36 +02:00
Liam Pace fef4d61978 dirty hack to rename file bc git doesn't track case changes (again)
Rename file (Part 1)

Rename file (Part 2)
2025-09-25 16:30:36 +02:00
Liam Pace 952fef189c Fix AnnotationProcessingError for Log4j2 access level tests 2025-09-25 16:30:36 +02:00
Liam Pace 58abf0caf9 Suppress deprecation warning for AccessLevel.MODULE 2025-09-25 16:30:36 +02:00
Liam Pace e9cf8aa0d9 dirty hack to rename file bc git doesn't track case changes
Rename file (Part 1)

Rename file (Part 2)
2025-09-25 16:30:36 +02:00
Lars Uffmann 2a3960babc Introduce ConfigurationKey<JacksonVersion> (lombok.jacksonized.jacksonVersion) 2025-09-25 12:39:26 +02:00
Lars Uffmann faa0033685 - Run test with CONF: lombok.jacksonized.useJackson3 = true, adjust ecj tests.
- Validate config options.
2025-09-25 11:34:28 +02:00
Lars Uffmann 086b351830 [FEATURE] Support Jackson3 in @Jacksonized #3950 2025-09-21 11:54:28 +02:00
Liam Pace 9152c3408f Fix failing tests 2025-09-17 22:24:00 +02:00
Liam Pace 121cfabac2 fix: add custom logger classes to tests 2025-09-17 22:24:00 +02:00
Liam Pace 9a2e7cb409 Add after-delombok transforms for various loggers 2025-09-17 22:24:00 +02:00
Liam Pace 1100dfae2e Add after-ecj transform for various loggers 2025-09-17 22:24:00 +02:00
Liam Pace 7bf709420f Add before transforms for various loggers 2025-09-17 22:24:00 +02:00
Roel Spilker 7eee00a0b4 [fixes #3931] Proper output for config tool addNullAnnotations 2025-09-02 11:20:10 +02:00
Reinier Zwitserloot 87e8af476a [comment] Added explanation: We skip ecj check on NonNullOnRecordExistingConstructorz. 2025-08-07 02:03:00 +02:00
Reinier Zwitserloot 7aa264ea6a Merge pull request #3888 from Rawi01/eclipse-record-refactoring
Support records in upcoming eclipse version
2025-08-07 02:02:32 +02:00
Reinier Zwitserloot 39ef5d0d04 [jdk25] Added support for implicit classes and a test to confirm support. 2025-08-01 01:13:52 +02:00
Reinier Zwitserloot 70ac222e64 [pretty][jdk25] Pretty printer now supports module imports; also: test that confirms this. 2025-08-01 00:58:01 +02:00
Rawi01 45f0da2050 [fixes #3883] Support records in upcoming eclipse version 2025-05-27 08:30:12 +02:00
Jan Rieke 592882feef also include getters, rename to copyJacksonAnnotationsToAccessors 2025-03-31 23:47:50 +02:00