Commit 4206e6e
fix: suppress warnings in generated projects for non-idiomatic durations (googleapis#4119)
Removes compiler warnings like
```
[CanonicalDuration] Duration can be expressed more clearly with different units
(see https://errorprone.info/bugpattern/CanonicalDuration)
Did you mean '.setMaxRetryDelayDuration(Duration.ofSeconds(45))'?
```
from generated clients
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>1 parent d250637 commit 4206e6e
File tree
37 files changed
+45
-1
lines changed- gapic-generator-java/src
- main/java/com/google/api/generator/gapic/composer/common
- test/java/com/google/api/generator
- gapic/composer
- grpcrest/goldens
- grpc/goldens
- rest/goldens
- test/framework
- java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub
- test/integration/goldens
- apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub
- asset/src/com/google/cloud/asset/v1/stub
- bigtable/src/com/google/cloud/bigtable/data/v2/stub
- compute/src/com/google/cloud/compute/v1small/stub
- credentials/src/com/google/cloud/iam/credentials/v1/stub
- iam/src/com/google/iam/v1/stub
- kms/src/com/google/cloud/kms/v1/stub
- library/src/com/google/cloud/example/library/v1/stub
- logging/src/com/google/cloud/logging/v2/stub
- pubsub/src/com/google/cloud/pubsub/v1/stub
- redis/src/com/google/cloud/redis/v1beta1/stub
- storage/src/com/google/storage/v2/stub
37 files changed
+45
-1
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
427 | 434 | | |
428 | 435 | | |
429 | 436 | | |
| |||
2188 | 2195 | | |
2189 | 2196 | | |
2190 | 2197 | | |
| 2198 | + | |
2191 | 2199 | | |
2192 | 2200 | | |
2193 | 2201 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
0 commit comments