Commit cf67770
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
googleapis/sdk-platform-java#2614.
Fixes b/3462158601 parent a88fdde commit cf67770
File tree
1 file changed
+17
-13
lines changed- sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc
1 file changed
+17
-13
lines changedLines 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