Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with the latest versions of AutoValue #3221

Closed
cushon opened this issue Mar 29, 2024 · 0 comments · Fixed by #3222
Closed

Compilation error with the latest versions of AutoValue #3221

cushon opened this issue Mar 29, 2024 · 0 comments · Fixed by #3222
Labels
api: bigquery Issues related to the googleapis/java-bigquery API.

Comments

@cushon
Copy link
Contributor

cushon commented Mar 29, 2024

The latest versions of AutoValue report an diagnostic:

A warning is now produced if a setX method in a Builder or its return type is marked @Nullable. Those methods always return the Builder instance, which is never null.

See also google/auto@e5b4b54

That diagnostic currently causes compilation errors in google-cloud-bigquery, e.g.:

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionSettings.java:225: error: [AutoValueBuilderSetterNullable] Setter methods always return the Builder so @Nullable is not appropriate
    public abstract Builder setUseReadAPI(Boolean useReadAPI);
                            ^
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/java-bigquery API. label Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/java-bigquery API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant