summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Adam Vartanian <flooey@google.com> 2019-03-04 04:10:20 -0800
committer android-build-merger <android-build-merger@google.com> 2019-03-04 04:10:20 -0800
commita343750304a91f4f69ea848e4fb5e8580000da2f (patch)
treeeafc4113039e7d48ae88a6d97927bcd5e0acda4f
parentd6b2dc39ee0396fd6b83256e8dfc06551dc880e8 (diff)
parent2948be98c2ffd4260a2c3571a24f8c078c45bab3 (diff)
Merge "Add @Nullable to new method" am: 70c0efdd86
am: 2948be98c2 Change-Id: I6f73879bd791af4ce2e0f6669a2d39f3648a5595
-rwxr-xr-xapi/current.txt2
-rw-r--r--core/java/android/net/http/SslCertificate.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index b3fd3ee7c0f7..074eff10fcaf 100755
--- a/api/current.txt
+++ b/api/current.txt
@@ -27888,7 +27888,7 @@ package android.net.http {
method public java.util.Date getValidNotAfterDate();
method @Deprecated public String getValidNotBefore();
method public java.util.Date getValidNotBeforeDate();
- method public java.security.cert.X509Certificate getX509Certificate();
+ method @Nullable public java.security.cert.X509Certificate getX509Certificate();
method public static android.net.http.SslCertificate restoreState(android.os.Bundle);
method public static android.os.Bundle saveState(android.net.http.SslCertificate);
}
diff --git a/core/java/android/net/http/SslCertificate.java b/core/java/android/net/http/SslCertificate.java
index 6fcd6ebe148a..01dd08f4ad9c 100644
--- a/core/java/android/net/http/SslCertificate.java
+++ b/core/java/android/net/http/SslCertificate.java
@@ -16,6 +16,7 @@
package android.net.http;
+import android.annotation.Nullable;
import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.os.Bundle;
@@ -252,7 +253,7 @@ public class SslCertificate {
* @return The {@code X509Certificate} used to create this {@code SslCertificate} or
* {@code null} if no certificate was provided.
*/
- public X509Certificate getX509Certificate() {
+ public @Nullable X509Certificate getX509Certificate() {
return mX509Certificate;
}