Recognize Checker Framework declaration annotations.
We are migrating Guava to use these annotations rather than jsr305's @Nullable. We can't use the Checker Framework's _@Nullable_ yet because we promise compatibility with Java 7, which doesn't support type annotations. This is related to but distinct from https://youtrack.jetbrains.com/issue/KT-21408, which is about a different jsr305 annotation we use, @ParametersAreNonnullByDefault. I've also updated some docs to mention Kotlin's existing support for the Checker Framework _@NonNull_.
This commit is contained in:
committed by
Alexander Udalov
parent
79359b7bc2
commit
ac87ad422d
@@ -498,4 +498,8 @@ We can also support the following annotations out-of-the-box:
|
||||
* `NotNull` and `NotNull.List`
|
||||
* [Project Lombok](http://projectlombok.org/features/NonNull.html)
|
||||
* [`org.eclipse.jdt.annotation`](https://wiki.eclipse.org/JDT_Core/Null_Analysis)
|
||||
* [`org.checkerframework.checker.nullness.qual`](http://types.cs.washington.edu/checker-framework/current/checker-framework-manual.html#nullness-checker)
|
||||
* [`org.checkerframework.checker.nullness`](https://checkerframework.org/manual/#nullness-checker)
|
||||
* [`*.qual.Nullable`](https://checkerframework.org/api/org/checkerframework/checker/nullness/qual/Nullable.html)
|
||||
* [`*.qual.NonNull`](https://checkerframework.org/api/org/checkerframework/checker/nullness/qual/NonNull.html)
|
||||
* [`*.compatqual.NullableDecl`](https://checkerframework.org/api/org/checkerframework/checker/nullness/compatqual/NullableDecl.html)
|
||||
* [`*.compatqual.NonNullDecl`](https://checkerframework.org/api/org/checkerframework/checker/nullness/compatqual/NonNullDecl.html)
|
||||
|
||||
Reference in New Issue
Block a user