We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f34024 commit 0fc9146Copy full SHA for 0fc9146
core/src/main/java/com/google/errorprone/bugpatterns/nullness/NullnessUtils.java
@@ -237,7 +237,12 @@ private static NullableAnnotationToUse pickNullableAnnotation(VisitorState state
237
}
238
239
private static boolean isTypeUse(String className) {
240
+ /*
241
+ * TODO(b/205115472): Make this tri-state ({type-use, declaration, both}) and avoid using "both"
242
+ * annotations in any cases in which they would be ambiguous (e.g., arrays/elements).
243
+ */
244
switch (className) {
245
+ case "libcore.util.Nullable":
246
case "org.checkerframework.checker.nullness.qual.Nullable":
247
case "org.jspecify.nullness.Nullable":
248
return true;
0 commit comments