diff --git a/api/system-current.txt b/api/system-current.txt index 8dedd2c12af44..4ee52d13b14d6 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -6187,8 +6187,8 @@ package android.security.keystore { } public class DeviceIdAttestationException extends java.lang.Exception { - ctor public DeviceIdAttestationException(String); - ctor public DeviceIdAttestationException(String, Throwable); + ctor public DeviceIdAttestationException(@Nullable String); + ctor public DeviceIdAttestationException(@Nullable String, @Nullable Throwable); } } diff --git a/api/test-current.txt b/api/test-current.txt index 684524e8987ba..b4d550a28a4fb 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -2099,8 +2099,8 @@ package android.security.keystore { } public class DeviceIdAttestationException extends java.lang.Exception { - ctor public DeviceIdAttestationException(String); - ctor public DeviceIdAttestationException(String, Throwable); + ctor public DeviceIdAttestationException(@Nullable String); + ctor public DeviceIdAttestationException(@Nullable String, @Nullable Throwable); } public static final class KeyGenParameterSpec.Builder { diff --git a/keystore/java/android/security/keystore/DeviceIdAttestationException.java b/keystore/java/android/security/keystore/DeviceIdAttestationException.java index 13f50b144e308..8ba0317845d0d 100644 --- a/keystore/java/android/security/keystore/DeviceIdAttestationException.java +++ b/keystore/java/android/security/keystore/DeviceIdAttestationException.java @@ -16,6 +16,7 @@ package android.security.keystore; +import android.annotation.Nullable; import android.annotation.SystemApi; import android.annotation.TestApi; @@ -33,7 +34,7 @@ public class DeviceIdAttestationException extends Exception { * * @param detailMessage the detail message for this exception. */ - public DeviceIdAttestationException(String detailMessage) { + public DeviceIdAttestationException(@Nullable String detailMessage) { super(detailMessage); } @@ -44,7 +45,7 @@ public class DeviceIdAttestationException extends Exception { * @param message the detail message for this exception. * @param cause the cause of this exception, may be {@code null}. */ - public DeviceIdAttestationException(String message, Throwable cause) { + public DeviceIdAttestationException(@Nullable String message, @Nullable Throwable cause) { super(message, cause); } }