Skip to content

Update lombok section at README.md#1624

Merged
msridhar merged 4 commits into
uber:masterfrom
jevanlingen:patch-1
Jul 3, 2026
Merged

Update lombok section at README.md#1624
msridhar merged 4 commits into
uber:masterfrom
jevanlingen:patch-1

Conversation

@jevanlingen

@jevanlingen jevanlingen commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

The README.md regarding Lombok is outdated. The @lombok.Generated annotation is set by default. From the release notes of Lombok:

v1.18.34 (June 28th, 2024)
IMPROBABLE BREAKING CHANGE: Lombok now adds @lombok.Generated by default to methods and types it generates. This may result in accidentally increasing your test coverage percentage. Issue #3667.

I tested it myself, seems to work just fine.

Summary by CodeRabbit

  • Documentation
    • Updated guidance on Lombok behavior starting in v1.18.34, including that @lombok.Generated is added by default to generated code.
    • Explained how this default influences generated-code detection during analysis/checks.
    • Added version-specific instructions for Lombok versions earlier than 1.18.34, including a lombok.config setting.
    • Warned that explicitly disabling the default @lombok.Generated behavior may break compatibility.

From the [release notes](https://projectlombok.org/changelog) of Lombok:

> v1.18.34 (June 28th, 2024)
> IMPROBABLE BREAKING CHANGE: Lombok now adds @lombok.Generated by default to methods and types it generates. This may result in accidentally increasing your test coverage percentage. Issue #3667.
@CLAassistant

CLAassistant commented Jun 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 531a8963-1339-4fc4-a7bf-158178f4cdb7

📥 Commits

Reviewing files that changed from the base of the PR and between 899ae7b and 932dc13.

📒 Files selected for processing (1)
  • README.md

Walkthrough

The README’s Lombok section now states that Lombok v1.18.34+ adds @lombok.Generated by default and that NullAway uses it to skip generated implementations. It removes the unconditional lombok.addLombokGeneratedAnnotation = true guidance, adds a warning about disabling the annotation, and provides version-gated instructions for older Lombok versions.

Suggested reviewers

  • seemantasaha
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: updating the Lombok section in README.md.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Around line 86-88: Add a language specifier to the fenced code block in the
README snippet so the markdownlint warning is resolved; update the Lombok config
example around the `lombok.addLombokGeneratedAnnotation` entry to use a labeled
fence such as `properties` (or `text`) while keeping the snippet content
otherwise unchanged.
- Line 87: The README Lombok configuration snippet is wrong because it shows the
setting disabled instead of enabled; update the
`lombok.addLombokGeneratedAnnotation` example in the README so it matches the
intended guidance and the `lombok.config` usage. Use the existing Lombok config
example and the surrounding text in the README to locate the snippet, and make
sure the documented value is the one that emits `@lombok.Generated` for Lombok
versions before 1.18.34.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: ffa2ef5b-2b98-4068-855f-6619d594b398

📥 Commits

Reviewing files that changed from the base of the PR and between f40a9fa and fa6a459.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md Outdated
Comment thread README.md Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♻️ Duplicate comments (1)
README.md (1)

87-87: 🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win

Set this Lombok flag to true

lombok.addLombokGeneratedAnnotation = false disables @lombok.Generated, but this section tells users to enable the behavior for Lombok < 1.18.34.

Suggested change
- lombok.addLombokGeneratedAnnotation = false
+ lombok.addLombokGeneratedAnnotation = true
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 87, The README’s Lombok configuration is inconsistent with
the surrounding guidance for Lombok < 1.18.34: update the documented flag value
from false to true in the Lombok settings section so the example matches the
intended behavior. Locate the `lombok.addLombokGeneratedAnnotation` entry and
change it to the enabled setting without altering the rest of the explanation.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@README.md`:
- Line 87: The README’s Lombok configuration is inconsistent with the
surrounding guidance for Lombok < 1.18.34: update the documented flag value from
false to true in the Lombok settings section so the example matches the intended
behavior. Locate the `lombok.addLombokGeneratedAnnotation` entry and change it
to the enabled setting without altering the rest of the explanation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4ed17cb8-282d-4b56-934f-4c927fb0d442

📥 Commits

Reviewing files that changed from the base of the PR and between fa6a459 and 4b1191a.

📒 Files selected for processing (1)
  • README.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@README.md`:
- Around line 86-89: Add a language specifier to the fenced snippet in the
README so the Lombok configuration block is marked as properties. Update the
markdown code fence around the lombok.addLombokGeneratedAnnotation setting to
use the properties tag, keeping the existing content unchanged and ensuring the
README markdownlint warning is resolved.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 870d415f-d316-4b56-a418-e8800aef0876

📥 Commits

Reviewing files that changed from the base of the PR and between 4b1191a and 899ae7b.

📒 Files selected for processing (1)
  • README.md

Comment thread README.md Outdated

@msridhar msridhar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot!

@msridhar

msridhar commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

@jevanlingen you'll need to sign the CLA before we can accept this PR. Thanks again!

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.10%. Comparing base (f40a9fa) to head (932dc13).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1624   +/-   ##
=========================================
  Coverage     88.10%   88.10%           
  Complexity     3046     3046           
=========================================
  Files           105      105           
  Lines         10181    10181           
  Branches       2062     2062           
=========================================
  Hits           8970     8970           
  Misses          572      572           
  Partials        639      639           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@msridhar msridhar enabled auto-merge (squash) July 1, 2026 21:02
@msridhar msridhar merged commit addfe41 into uber:master Jul 3, 2026
14 checks passed
@jevanlingen jevanlingen deleted the patch-1 branch July 3, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants