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
diff --git a/wifi/java/android/net/wifi/SoftApConfiguration.java b/wifi/java/android/net/wifi/SoftApConfiguration.java
index 1da9aad..49fb5a3 100644
--- a/wifi/java/android/net/wifi/SoftApConfiguration.java
+++ b/wifi/java/android/net/wifi/SoftApConfiguration.java
@@ -36,7 +36,6 @@
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 @@
* 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 @@
/**
* 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 @@
/**
* 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 c371825..783acc3 100644
--- a/wifi/java/android/net/wifi/WifiManager.java
+++ b/wifi/java/android/net/wifi/WifiManager.java
@@ -3740,9 +3740,10 @@
/**
* 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 @@
}
/**
- * 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() {