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

Commit 70c0efdd authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add @Nullable to new method"

parents 69ae441f 882eb186
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -27890,7 +27890,7 @@ package android.net.http {
    method public java.util.Date getValidNotAfterDate();
    method public java.util.Date getValidNotAfterDate();
    method @Deprecated public String getValidNotBefore();
    method @Deprecated public String getValidNotBefore();
    method public java.util.Date getValidNotBeforeDate();
    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.net.http.SslCertificate restoreState(android.os.Bundle);
    method public static android.os.Bundle saveState(android.net.http.SslCertificate);
    method public static android.os.Bundle saveState(android.net.http.SslCertificate);
  }
  }
+2 −1
Original line number Original line Diff line number Diff line
@@ -16,6 +16,7 @@


package android.net.http;
package android.net.http;


import android.annotation.Nullable;
import android.annotation.UnsupportedAppUsage;
import android.annotation.UnsupportedAppUsage;
import android.content.Context;
import android.content.Context;
import android.os.Bundle;
import android.os.Bundle;
@@ -252,7 +253,7 @@ public class SslCertificate {
     * @return The {@code X509Certificate} used to create this {@code SslCertificate} or
     * @return The {@code X509Certificate} used to create this {@code SslCertificate} or
     * {@code null} if no certificate was provided.
     * {@code null} if no certificate was provided.
     */
     */
    public X509Certificate getX509Certificate() {
    public @Nullable X509Certificate getX509Certificate() {
        return mX509Certificate;
        return mX509Certificate;
    }
    }