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
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user