-
Notifications
You must be signed in to change notification settings - Fork 0
/
SupportedAnnotations.java
40 lines (35 loc) · 1.52 KB
/
SupportedAnnotations.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.amrelmasry.processorly;
import java.util.Arrays;
import java.util.List;
/**
* These values are copied from :
* https://github.com/JetBrains/kotlin/blob/master/core/descriptor.loader.java/src/org/jetbrains/kotlin/load/java/JvmAnnotationNames.kt
* <p>
* Created by Amr Elmasry on 18/09/17.
*/
final class SupportedAnnotations {
static final List<String> NULLABLE_ANNOTATIONS = Arrays.asList(
"org.jetbrains.annotations.Nullable",
"android.support.annotation.Nullable",
"com.android.annotations.Nullable",
"org.eclipse.jdt.annotation.Nullable",
"org.checkerframework.checker.nullness.qual.Nullable",
"javax.annotation.Nullable",
"javax.annotation.CheckForNull",
"edu.umd.cs.findbugs.annotations.CheckForNull",
"edu.umd.cs.findbugs.annotations.Nullable",
"edu.umd.cs.findbugs.annotations.PossiblyNull",
"io.reactivex.annotations.Nullable");
static final List<String> NOT_NULL_ANNOTATIONS = Arrays.asList(
"org.jetbrains.annotations.NotNull",
"edu.umd.cs.findbugs.annotations.NonNull",
"android.support.annotation.NonNull",
"com.android.annotations.NonNull",
"org.eclipse.jdt.annotation.NonNull",
"org.checkerframework.checker.nullness.qual.NonNull",
"lombok.NonNull",
"io.reactivex.annotations.NonNull");
private SupportedAnnotations() {
throw new AssertionError("No Instances");
}
}