Skip to content

Commit

Permalink
Fix unnecessary boxed primitives in AutoValue classes
Browse files Browse the repository at this point in the history
Fixes

```
google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java:42: error: [AutoValueUnnecessaryBoxing] property method com.google.cloud.bigquery.TableResult.getTotalRows() is primitive but parameter of setter method is not
    public abstract TableResult.Builder setTotalRows(Long totalRows);
                                        ^
```

See google/auto@328a25c
  • Loading branch information
cushon committed Aug 27, 2024
1 parent 421c825 commit 47db5ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract static class Builder {
* Sets the total number of rows in the complete result set, which can be more than the number
* of rows in the first page of results returned by {@link #getValues()}.
*/
public abstract TableResult.Builder setTotalRows(Long totalRows);
public abstract TableResult.Builder setTotalRows(long totalRows);

public abstract TableResult.Builder setJobId(JobId jobId);

Expand Down

0 comments on commit 47db5ae

Please sign in to comment.