Commit 393b548
Fix stale comment, null guard, and minor cleanups in CachedTokenSource
- Update field comment on staleAfter to reflect its Instant type
- Guard against null newToken in async refresh before calling cachedTokenIsNewer
- Remove redundant synchronized block in handleFailedAsyncRefresh
- Collapse duplicate null-check branches in updateToken
- Use imperative tense in changelog entry
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ba30e69 commit 393b548
2 files changed
Lines changed: 7 additions & 15 deletions
File tree
- databricks-sdk-java/src/main/java/com/databricks/sdk/core/oauth
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 202 | + | |
209 | 203 | | |
210 | 204 | | |
211 | 205 | | |
| |||
239 | 233 | | |
240 | 234 | | |
241 | 235 | | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
247 | 239 | | |
248 | 240 | | |
249 | 241 | | |
| |||
373 | 365 | | |
374 | 366 | | |
375 | 367 | | |
376 | | - | |
| 368 | + | |
377 | 369 | | |
378 | 370 | | |
379 | 371 | | |
| |||
0 commit comments