AzureAD / microsoft-authentication-library-common-for-android

Common code used by both the Active Directory Authentication Library (ADAL) and the Microsoft Authentication Library (MSAL)
MIT License
41 stars 35 forks source link

Replace the usage of Arrays.stream to use non-Java8 APIs in common #2162

Closed tanmaymanolkar1 closed 1 year ago

tanmaymanolkar1 commented 1 year ago

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

image