Skip to content

Replace AutoValue with records#54

Merged
nlativy merged 1 commit into
masterfrom
autovalue-to-records
Apr 27, 2026
Merged

Replace AutoValue with records#54
nlativy merged 1 commit into
masterfrom
autovalue-to-records

Conversation

@nlativy
Copy link
Copy Markdown
Collaborator

@nlativy nlativy commented Apr 27, 2026

Summary

  • Convert the two @AutoValue classes (MethodReference, MethodCalls) to records — both are simple value types with no builders or custom equality, so records map cleanly on Java 26.
  • Drop the auto-value annotation processor, the auto-value-annotations dependency, the auto-value.version property, the jacoco **/AutoValue_* exclude, and the Error Prone -XepExcludedPaths arg that was only there to ignore AutoValue's generated sources.

Test plan

  • mvn package (compile, tests, javadoc, sources, jacoco) — all 43 tests pass

Both value classes (MethodReference, MethodCalls) are simple data
holders with no builders or custom equality, so records map cleanly
on Java 26. Drops the auto-value annotation processor, the
auto-value-annotations dependency, the jacoco AutoValue_* exclude,
and the Error Prone -XepExcludedPaths arg that was only there to
ignore AutoValue's generated sources.
@nlativy nlativy merged commit 261d0f8 into master Apr 27, 2026
3 checks passed
@nlativy nlativy deleted the autovalue-to-records branch April 27, 2026 20:23
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.

1 participant