From ba8093a22e7652a5a20646885973d79bbcb294d8 Mon Sep 17 00:00:00 2001 From: Aaron Huang Date: Mon, 10 May 2021 23:09:44 +0800 Subject: [PATCH] Add return type javadoc to NetworkStateSnapshot#getLegacyType Add javadoc to document the return type is the legacy network type in getLegacyType. Bug: 183972826 Test: only update javadoc Change-Id: I7757253af5955f7d489d6349c090dcba146cfd7f --- core/java/android/net/NetworkStateSnapshot.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/java/android/net/NetworkStateSnapshot.java b/core/java/android/net/NetworkStateSnapshot.java index 9df861a6ff..3915634392 100644 --- a/core/java/android/net/NetworkStateSnapshot.java +++ b/core/java/android/net/NetworkStateSnapshot.java @@ -104,7 +104,10 @@ public final class NetworkStateSnapshot implements Parcelable { return mSubscriberId; } - /** Get the legacy type of the network associated with this snapshot. */ + /** + * Get the legacy type of the network associated with this snapshot. + * @return the legacy network type. See {@code ConnectivityManager#TYPE_*}. + */ public int getLegacyType() { return mLegacyType; }