Skip to content

Conversation

@renaudhartert-db
Copy link
Contributor

@renaudhartert-db renaudhartert-db commented Jun 20, 2025

What changes are proposed in this pull request?

This PR adds a dependency on Google's AutoValue library to simplify the development and maintenance of value classes. See Why should I use AutoValue? for more details.

The decision to use AutoValue is motivated by the fact that the Databricks SDK must support Java 8 for the foreseeable future and does not have access to new language features such as records — which would obsolete AutoValue.

NO_CHANGELOG=true

How is this tested?

Simplified one small internal class to use AutoValue and validated that the impacted unit and integration tests are fine with it.

@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-java

Inputs:

  • PR number: 471
  • Commit SHA: 8392767bf507acb622f1633ab9fd1debafd38236

Checks will be approved automatically on success.

Copy link
Contributor

@emmyzhou-db emmyzhou-db left a comment

Choose a reason for hiding this comment

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

Nice choice of class to showcase the benefits of autovalue!

@renaudhartert-db renaudhartert-db added this pull request to the merge queue Jun 23, 2025
Merged via the queue into main with commit 660d785 Jun 23, 2025
15 of 16 checks passed
@renaudhartert-db renaudhartert-db deleted the renaud-hartert_data/autovalue branch June 23, 2025 13:05
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.

4 participants