Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,9 @@ private static boolean hasNullMarkedOrNullUnmarkedAnnotation(Symbol symbol) {
return ASTHelpers.hasDirectAnnotationWithSimpleName(symbol, "NullMarked")
|| ASTHelpers.hasDirectAnnotationWithSimpleName(symbol, "NullUnmarked");
}

@Override
public String linkUrl() {
return "https://github.com/uber/NullAway/wiki/JSpecify-Support#requireexplicitnullmarking-checker";
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ public void missingNullMarkedAnnotationOnTopLevelClass() {
.doTest();
}

@Test
public void defaultURL() {
compilationHelper
.addSourceLines(
"test/MissingAnnotation.java",
"package test;",
"// BUG: Diagnostic contains: https://github.com/uber/NullAway/wiki/JSpecify-Support#requireexplicitnullmarking-checker",
"class MissingAnnotation {",
"}")
.doTest();
}

/** Test that at SUGGESTION level, no report is made for missing annotations */
@Test
public void noReportAtDefaultLevel() {
Expand Down