Skip to content

Commit

Permalink
Replace @nonnull(when = When.MAYBE) with @checkfornull in @nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Sep 22, 2024
1 parent 5ba2845 commit 01d2d8b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
*/
package io.micrometer.core.lang;

import javax.annotation.Nonnull;
import javax.annotation.CheckForNull;
import javax.annotation.meta.TypeQualifierNickname;
import javax.annotation.meta.When;
import java.lang.annotation.*;

/**
Expand All @@ -44,7 +43,7 @@
@Target({ ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Nonnull(when = When.MAYBE)
@CheckForNull
@TypeQualifierNickname
@Deprecated
public @interface Nullable {
Expand Down

0 comments on commit 01d2d8b

Please sign in to comment.