WHY?
To avoid : Android 22 Runtime MissingMethodException - Arrays.stream uses desugaring library not included faced by OneAuth-MSAL.
Testing :
Testcase : com.microsoft.identity.common.MsalOAuth2TokenCacheTest#saveTokensWithIntersect
Ran the test on this part of code, and results with arrays.stream and after the change look the same
WHAT? https://identitydivision.visualstudio.com/Engineering/_workitems/edit/2674888
WHY? To avoid : Android 22 Runtime MissingMethodException - Arrays.stream uses desugaring library not included faced by OneAuth-MSAL.
Testing : Testcase : com.microsoft.identity.common.MsalOAuth2TokenCacheTest#saveTokensWithIntersect Ran the test on this part of code, and results with arrays.stream and after the change look the same