Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f272d502 authored by lesl's avatar lesl
Browse files

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
parent 115873a1
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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() {
+4 −3
Original line number Diff line number Diff line
@@ -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() {