Revert "Prevent compilation warnings with `@Nullable`"
This reverts commit dc242df533.
This commit is contained in:
parent
f6089afd0e
commit
d6e9562aeb
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2024 the original author or authors.
|
* Copyright 2002-2023 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -22,8 +22,9 @@ import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
||||||
import java.lang.annotation.Target;
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
import javax.annotation.CheckForNull;
|
import javax.annotation.Nonnull;
|
||||||
import javax.annotation.meta.TypeQualifierNickname;
|
import javax.annotation.meta.TypeQualifierNickname;
|
||||||
|
import javax.annotation.meta.When;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A common Spring annotation to declare that annotated elements can be {@code null}
|
* A common Spring annotation to declare that annotated elements can be {@code null}
|
||||||
|
|
@ -49,7 +50,7 @@ import javax.annotation.meta.TypeQualifierNickname;
|
||||||
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
|
@Target({ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD})
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Documented
|
@Documented
|
||||||
@CheckForNull
|
@Nonnull(when = When.MAYBE)
|
||||||
@TypeQualifierNickname
|
@TypeQualifierNickname
|
||||||
public @interface Nullable {
|
public @interface Nullable {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue