Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Fix URL for RequireExplicitNullMarking checker
  • Loading branch information
msridhar committed Dec 5, 2025
commit b0d85ca24d7bb6f921dc2b2c022b4a8f63e3605d
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
Loading