Commit 1e624a9
oauth2_http: Use Futures.getDone() instead of Future.get() in listener (#1109)
Listeners for Futures should generally use Futures.addCallback() or
Futures.getDone() when called. This makes it clear they won't block and
allows tooling to know it will never block.
cl/492555987
Co-authored-by: Timur Sadykov <[email protected]>1 parent 06bf21a commit 1e624a9
File tree
1 file changed
+1
-3
lines changed- oauth2_http/java/com/google/auth/oauth2
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | 291 | | |
294 | 292 | | |
295 | 293 | | |
| |||
0 commit comments