diff --git a/micrometer-commons/src/main/java/io/micrometer/common/lang/Nullable.java b/micrometer-commons/src/main/java/io/micrometer/common/lang/Nullable.java index 9854b28df1..a36a79fe1f 100644 --- a/micrometer-commons/src/main/java/io/micrometer/common/lang/Nullable.java +++ b/micrometer-commons/src/main/java/io/micrometer/common/lang/Nullable.java @@ -16,9 +16,8 @@ */ package io.micrometer.common.lang; -import javax.annotation.Nonnull; +import javax.annotation.CheckForNull; import javax.annotation.meta.TypeQualifierNickname; -import javax.annotation.meta.When; import java.lang.annotation.*; /** @@ -43,7 +42,7 @@ @Target({ ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) @Documented -@Nonnull(when = When.MAYBE) +@CheckForNull @TypeQualifierNickname public @interface Nullable {