openrewrite / openrewrite/rewrite-migrate-java

Convert Google Auto value to records

Open
#148 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

recipe
Dominant language
Java
Stars
156
Forks
130
Avg merge
20h 57m
Merged PRs (30d)
21

Description

Came across this trade-off and migration analysis for Google auto value versus Java records:
https://github.com/google/auto/blob/main/value/userguide/records.md#translating-an-autovalue-class-into-a-record

Interesting analysis, and already reads like a migration recipe with the before and after samples, as well as edge cases when not to convert just yet.

Thought it might be interesting to write a migration recipe for, or at least gauge interest here. We could even reach out for a contribution or collaboration.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked Google Auto migration analysis, including its before-and-after samples and edge cases. Then inspect this repository’s existing Java migration recipes to determine whether a Google Auto Value-to-record recipe fits; the issue does not identify a file, test, or concrete completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.