summaryrefslogtreecommitdiff
path: root/common/device-side/bedstead/remoteaccountauthenticator/src/main/java/com/android/bedstead/remoteaccountauthenticator/RemoteAccountAuthenticator.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/device-side/bedstead/remoteaccountauthenticator/src/main/java/com/android/bedstead/remoteaccountauthenticator/RemoteAccountAuthenticator.java')
-rw-r--r--common/device-side/bedstead/remoteaccountauthenticator/src/main/java/com/android/bedstead/remoteaccountauthenticator/RemoteAccountAuthenticator.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/device-side/bedstead/remoteaccountauthenticator/src/main/java/com/android/bedstead/remoteaccountauthenticator/RemoteAccountAuthenticator.java b/common/device-side/bedstead/remoteaccountauthenticator/src/main/java/com/android/bedstead/remoteaccountauthenticator/RemoteAccountAuthenticator.java
index 9c813c15dc6..47caa4df661 100644
--- a/common/device-side/bedstead/remoteaccountauthenticator/src/main/java/com/android/bedstead/remoteaccountauthenticator/RemoteAccountAuthenticator.java
+++ b/common/device-side/bedstead/remoteaccountauthenticator/src/main/java/com/android/bedstead/remoteaccountauthenticator/RemoteAccountAuthenticator.java
@@ -31,6 +31,8 @@ import com.android.bedstead.testapp.TestAppProvider;
import java.io.IOException;
import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
@@ -42,9 +44,9 @@ import java.util.stream.Stream;
public final class RemoteAccountAuthenticator extends TestAppInstance {
// TODO(263350665): Query account types from xml
- private static final Set<String> ACCOUNT_TYPES = Set.of(
+ private static final Set<String> ACCOUNT_TYPES = new HashSet<>(Arrays.asList(
"com.android.bedstead.remoteaccountauthenticator.account"
- );
+ ));
private static final String REMOTE_ACCOUNT_AUTHENTICATOR_PACKAGE_NAME =
"com.android.RemoteAccountAuthenticator";