Commit 7fd1e1e
Fixes AB#3429389 cleanup + optimized saveAndLoadAggregatedAccountData that identifies … (#2832)
Fixes
[AB#3429389](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3429389)
This PR cleans up unused classes and methods that have not been used and
have been deprecated for the last 3 years.
It adds an optimized saveAndLoadAggregatedAccount() method that
identifies the targetCache, on which save() and
loadAggregatedAccountData() methods should be called, once. The current
SaveAndLoadAggregatedAccount() method performs 2 disjoint operations -
1. save() -> finds the token cache (FOCI or ProcessUId), save the
accounts and credentials to the cache. 2. loadAggregatedAccountData ->
finds the token cache again (by querying metadata from the storage and
performing multiple operations) and then, loading the aggregated account
data.
This PR gets rid of the duplicate 'finding the token cache' part.
---------
Co-authored-by: Copilot <[email protected]>1 parent 74d927e commit 7fd1e1e
File tree
11 files changed
+504
-861
lines changed- common4j/src/main/com/microsoft/identity/common/java
- cache
- flighting
- opentelemetry
- common/src
- main/java/com/microsoft/identity/common/internal/cache
- test/java/com/microsoft/identity/common
11 files changed
+504
-861
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
Lines changed: 0 additions & 97 deletions
This file was deleted.
Lines changed: 0 additions & 144 deletions
This file was deleted.
0 commit comments