summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yan Yan <evitayan@google.com> 2022-12-15 00:39:05 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-12-15 00:39:05 +0000
commite60e0a8b7566abdc1f65cfd0dadd7e46dbaeb29e (patch)
tree7af8006273deee7daf8b43ecb6d697485a54b598
parent170a9ababbae81f7de35b3bd885f09fe3b1d6040 (diff)
parent6cc63c4968eda6f7a79fa80d469fddcb911a588f (diff)
Merge "Fix a typo and use ArraySet in VCN"
-rw-r--r--core/java/android/net/vcn/VcnGatewayConnectionConfig.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/net/vcn/VcnGatewayConnectionConfig.java b/core/java/android/net/vcn/VcnGatewayConnectionConfig.java
index b8850f427cfc..4c9d150ec486 100644
--- a/core/java/android/net/vcn/VcnGatewayConnectionConfig.java
+++ b/core/java/android/net/vcn/VcnGatewayConnectionConfig.java
@@ -42,7 +42,6 @@ import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
-import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
@@ -134,7 +133,7 @@ public final class VcnGatewayConnectionConfig {
/**
* Perform mobility update to attempt recovery from suspected data stalls.
*
- * <p>If set, the gatway connection will monitor the data stall detection of the VCN network.
+ * <p>If set, the gateway connection will monitor the data stall detection of the VCN network.
* When there is a suspected data stall, the gateway connection will attempt recovery by
* performing a mobility update on the underlying IKE session.
*/
@@ -243,7 +242,7 @@ public final class VcnGatewayConnectionConfig {
mExposedCapabilities = new TreeSet(exposedCapabilities);
mRetryIntervalsMs = retryIntervalsMs;
mMaxMtu = maxMtu;
- mGatewayOptions = Collections.unmodifiableSet(new HashSet(gatewayOptions));
+ mGatewayOptions = Collections.unmodifiableSet(new ArraySet(gatewayOptions));
mUnderlyingNetworkTemplates = new ArrayList<>(underlyingNetworkTemplates);
if (mUnderlyingNetworkTemplates.isEmpty()) {
@@ -294,7 +293,7 @@ public final class VcnGatewayConnectionConfig {
mGatewayOptions = Collections.emptySet();
} else {
mGatewayOptions =
- new HashSet<>(
+ new ArraySet<>(
PersistableBundleUtils.toList(
gatewayOptionsBundle,
PersistableBundleUtils.INTEGER_DESERIALIZER));