Skip to content

Commit dea268a

Browse files
committed
Add suggested NotNull annots
1 parent 0acba32 commit dea268a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,16 +822,22 @@ class Definitions {
822822
// create Symbols for the ones that are present, so they can be checked during nullification.
823823
@tu lazy val NotNullAnnots: List[ClassSymbol] = ctx.getClassesIfDefined(
824824
"javax.annotation.Nonnull" ::
825-
"edu.umd.cs.findbugs.annotations.NonNull" ::
825+
"javax.validation.constraints.NotNull" ::
826826
"androidx.annotation.NonNull" ::
827827
"android.support.annotation.NonNull" ::
828828
"android.annotation.NonNull" ::
829829
"com.android.annotations.NonNull" ::
830830
"org.eclipse.jdt.annotation.NonNull" ::
831+
"edu.umd.cs.findbugs.annotations.NonNull" ::
831832
"org.checkerframework.checker.nullness.qual.NonNull" ::
832833
"org.checkerframework.checker.nullness.compatqual.NonNullDecl" ::
833834
"org.jetbrains.annotations.NotNull" ::
835+
"org.springframework.lang.NonNull" ::
836+
"org.springframework.lang.NonNullApi" ::
837+
"org.springframework.lang.NonNullFields" ::
834838
"lombok.NonNull" ::
839+
"reactor.util.annotation.NonNull" ::
840+
"reactor.util.annotation.NonNullApi" ::
835841
"io.reactivex.annotations.NonNull" :: Nil map PreNamedString)
836842

837843
// convenient one-parameter method types

0 commit comments

Comments
 (0)