Merge "Set ParseException constructors as public" am: a2a324f843 am: 7251eb2f0c

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669051

Change-Id: I07fa3e87f4faff89f35b6a3500d3ccf0f5a10e94
This commit is contained in:
Remi NGUYEN VAN
2021-04-09 01:47:41 +00:00
committed by Automerger Merge Worker
3 changed files with 2 additions and 10 deletions

View File

@@ -410,6 +410,8 @@ package android.net {
} }
public class ParseException extends java.lang.RuntimeException { public class ParseException extends java.lang.RuntimeException {
ctor public ParseException(@NonNull String);
ctor public ParseException(@NonNull String, @NonNull Throwable);
field public String response; field public String response;
} }

View File

@@ -133,11 +133,6 @@ package android.net {
method @NonNull public android.net.NetworkRequest.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>); method @NonNull public android.net.NetworkRequest.Builder setUids(@Nullable java.util.Set<android.util.Range<java.lang.Integer>>);
} }
public class ParseException extends java.lang.RuntimeException {
ctor public ParseException(@NonNull String);
ctor public ParseException(@NonNull String, @NonNull Throwable);
}
public final class TcpRepairWindow { public final class TcpRepairWindow {
ctor public TcpRepairWindow(int, int, int, int, int, int); ctor public TcpRepairWindow(int, int, int, int, int, int);
field public final int maxWindow; field public final int maxWindow;

View File

@@ -17,7 +17,6 @@
package android.net; package android.net;
import android.annotation.NonNull; import android.annotation.NonNull;
import android.annotation.SystemApi;
/** /**
* Thrown when parsing failed. * Thrown when parsing failed.
@@ -26,15 +25,11 @@ import android.annotation.SystemApi;
public class ParseException extends RuntimeException { public class ParseException extends RuntimeException {
public String response; public String response;
/** @hide */
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public ParseException(@NonNull String response) { public ParseException(@NonNull String response) {
super(response); super(response);
this.response = response; this.response = response;
} }
/** @hide */
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
public ParseException(@NonNull String response, @NonNull Throwable cause) { public ParseException(@NonNull String response, @NonNull Throwable cause) {
super(response, cause); super(response, cause);
this.response = response; this.response = response;