This repository was archived by the owner on May 14, 2026. It is now read-only.
Commit 536f1eb
authored
fix: Move the logic of getting systemProductName from static block to static method (#2874)
The static field `systemProductName` should only be used for testing
purposes. In production environment, the logic of checking
`isOnComputeEngine` should be exactly the same as before
#2614.
Fixes b/3462158601 parent af10a9e commit 536f1eb
1 file changed
Lines changed: 17 additions & 13 deletions
File tree
- gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc
Lines changed: 17 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 86 | + | |
99 | 87 | | |
100 | 88 | | |
101 | 89 | | |
| |||
345 | 333 | | |
346 | 334 | | |
347 | 335 | | |
| 336 | + | |
348 | 337 | | |
349 | 338 | | |
350 | 339 | | |
351 | 340 | | |
352 | 341 | | |
353 | 342 | | |
354 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
355 | 359 | | |
356 | 360 | | |
357 | 361 | | |
| |||
0 commit comments