diff --git a/wifi/java/android/net/wifi/WifiNetworkSuggestion.java b/wifi/java/android/net/wifi/WifiNetworkSuggestion.java index f5767453a6fb4..4262017323597 100644 --- a/wifi/java/android/net/wifi/WifiNetworkSuggestion.java +++ b/wifi/java/android/net/wifi/WifiNetworkSuggestion.java @@ -374,12 +374,11 @@ public final class WifiNetworkSuggestion implements Parcelable { } /** - * Create a network suggestion object use in + * Create a network suggestion object for use in * {@link WifiManager#addNetworkSuggestions(List)}. * - * See {@link WifiNetworkSuggestion}. - *

- * Note: Apps can set a combination of SSID using {@link #setSsid(String)} and BSSID + *

+ * Note: Apps can set a combination of SSID using {@link #setSsid(String)} and BSSID * using {@link #setBssid(MacAddress)} to provide more fine grained network suggestions to * the platform. *

@@ -387,7 +386,8 @@ public final class WifiNetworkSuggestion implements Parcelable { * For example: * To provide credentials for one open, one WPA2 and one WPA3 network with their * corresponding SSID's: - * {@code + * + *
{@code
          * final WifiNetworkSuggestion suggestion1 =
          *      new Builder()
          *      .setSsid("test111111")
@@ -403,19 +403,20 @@ public final class WifiNetworkSuggestion implements Parcelable {
          *      .setWpa3Passphrase("test6789")
          *      .build()
          * final List suggestionsList =
-         *      new ArrayList {{
+         *      new ArrayList { {
          *          add(suggestion1);
          *          add(suggestion2);
          *          add(suggestion3);
-         *      }};
+         *      } };
          * final WifiManager wifiManager =
          *      context.getSystemService(Context.WIFI_SERVICE);
          * wifiManager.addNetworkSuggestions(suggestionsList);
-         * ...
-         * }
+         * // ...
+         * }
* - * @return Instance of {@link WifiNetworkSuggestion}. - * @throws IllegalStateException on invalid params set. + * @return Instance of {@link WifiNetworkSuggestion} + * @throws IllegalStateException on invalid params set + * @see WifiNetworkSuggestion */ public @NonNull WifiNetworkSuggestion build() { if (mSsid == null) {