diff options
| author | lesl <lesl@google.com> | 2020-01-17 19:48:49 +0800 |
|---|---|---|
| committer | lesl <lesl@google.com> | 2020-01-18 01:59:26 +0800 |
| commit | f272d502061b49dade7b60bb3754a4260c613951 (patch) | |
| tree | 175f90f57b2f4a44d451f677a5f5c2f5bf573566 | |
| parent | 115873a18baa395fa100eeb62e4060a657fa3303 (diff) | |
wifi: Fix java doc error, use @code instead of @link
Root cause:
The @link is referencing the hidden method will build break
Bug: 142752869
Test: make docs frameworks/base/wifi/
Change-Id: I8101fcfc5fd022d3216b300ce054645bcd878a07
| -rw-r--r-- | wifi/java/android/net/wifi/SoftApConfiguration.java | 11 | ||||
| -rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 7 |
2 files changed, 9 insertions, 9 deletions
diff --git a/wifi/java/android/net/wifi/SoftApConfiguration.java b/wifi/java/android/net/wifi/SoftApConfiguration.java index 1da9aad7cc39..49fb5a365b89 100644 --- a/wifi/java/android/net/wifi/SoftApConfiguration.java +++ b/wifi/java/android/net/wifi/SoftApConfiguration.java @@ -36,7 +36,6 @@ import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Objects; -import java.util.concurrent.Executor; /** * Configuration for a soft access point (a.k.a. Soft AP, SAP, Hotspot). @@ -45,10 +44,10 @@ import java.util.concurrent.Executor; * framework how it should configure a hotspot. * * System apps can use this to configure a tethered hotspot using - * {@link WifiManager#startTetheredHotspot(SoftApConfiguration)} and - * {@link WifiManager#setSoftApConfiguration(SoftApConfiguration)} + * {@code WifiManager#startTetheredHotspot(SoftApConfiguration)} and + * {@code WifiManager#setSoftApConfiguration(SoftApConfiguration)} * or local-only hotspot using - * {@link WifiManager#startLocalOnlyHotspot(SoftApConfiguration, Executor, + * {@code WifiManager#startLocalOnlyHotspot(SoftApConfiguration, Executor, * WifiManager.LocalOnlyHotspotCallback)}. * * Instances of this class are immutable; use {@link SoftApConfiguration.Builder} and its methods to @@ -347,7 +346,7 @@ public final class SoftApConfiguration implements Parcelable { /** * Return String set to be the SSID for the AP. - * {@link #setSsid(String)}. + * {@link Builder#setSsid(String)}. */ @Nullable public String getSsid() { @@ -365,7 +364,7 @@ public final class SoftApConfiguration implements Parcelable { /** * Returns String set to be passphrase for current AP. - * {@link #setPassphrase(String, @SecurityType int)}. + * {@link Builder#setPassphrase(String, int)}. */ @Nullable public String getPassphrase() { diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index c371825d9c76..783acc319694 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -3740,9 +3740,10 @@ public class WifiManager { /** * Returns the {@link WifiConfiguration} of the current Local Only Hotspot (LOHS). * May be null if hotspot enabled and security type is not - * {@link WifiConfiguration.KeyMgmt.None} or {@link WifiConfiguration.KeyMgmt.WPA2_PSK}. + * {@code WifiConfiguration.KeyMgmt.None} or {@code WifiConfiguration.KeyMgmt.WPA2_PSK}. * - * @deprecated Use {@link getSoftApConfiguration()} to get the LOHS configuration. + * @deprecated Use {@code WifiManager#getSoftApConfiguration()} to get the + * LOHS configuration. */ @Deprecated @Nullable @@ -3751,7 +3752,7 @@ public class WifiManager { } /** - * Returns the {@link SoftapConfiguration} of the current Local Only Hotspot (LOHS). + * Returns the {@link SoftApConfiguration} of the current Local Only Hotspot (LOHS). */ @NonNull public SoftApConfiguration getSoftApConfiguration() { |
