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 2461a55
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.common.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 @@ -43,7 +42,7 @@
@Target({ ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Nonnull(when = When.MAYBE)
@CheckForNull
@TypeQualifierNickname
public @interface Nullable {

Expand Down

0 comments on commit 2461a55

Please sign in to comment.