mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java] JSpecifyConformanceAnnotationTest: update comment about catch parameter nullness
Related to IDEA-377763 Intrinsically NonNull exception parameter cannot be assigned null GitOrigin-RevId: 94b3ae8452deca39d6162d926e2a457e4275212a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
960e3448ae
commit
216eddbbf8
+5
-2
@@ -92,8 +92,11 @@ public class JSpecifyConformanceAnnotationTest extends LightJavaCodeInsightFixtu
|
||||
|
||||
private static boolean suppressWarning(@NotNull String message, String fileName, Integer offset) {
|
||||
Set<Pair<String, Integer>> suppressed = Set.of(
|
||||
Pair.create("Other.java", 72), // see: IDEA-377763
|
||||
Pair.create("Other.java", 70) // see: IDEA-377763
|
||||
// These two exceptions are expected: unlike JSpecify, we don't assign NotNull nullness to non-final catch parameter
|
||||
// Instead, we are doing the flow analysis and may change the nullness during the variable lifetime
|
||||
// See IDEA-377763 for details
|
||||
Pair.create("Other.java", 72),
|
||||
Pair.create("Other.java", 70)
|
||||
);
|
||||
LineColumn column = StringUtil.offsetToLineColumn(message, offset);
|
||||
return suppressed.contains(Pair.create(fileName, column.line));
|
||||
|
||||
Reference in New Issue
Block a user