mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SourceToSinkFlowInspection: tests for adding checker-qual dependency (IJ-CR-17164)
GitOrigin-RevId: 64c606a55f93cfe5a1f780508fcc71db1552d045
This commit is contained in:
committed by
intellij-monorepo-bot
parent
efd9c45dca
commit
dd2943e081
+8
@@ -0,0 +1,8 @@
|
||||
// "Add 'checker-qual' to classpath" "true"
|
||||
package x;
|
||||
|
||||
public class AddCheckerFrameworkAnnotations {
|
||||
public @Ta<caret>inted String source() {
|
||||
return "unsafe";
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Add 'checker-qual' to classpath" "true"
|
||||
package x;
|
||||
|
||||
public class AddCheckerFrameworkAnnotations {
|
||||
@Untaint<caret>ed
|
||||
public void safe() {
|
||||
|
||||
}
|
||||
}
|
||||
+8
@@ -146,6 +146,14 @@ public class OrderEntryTest extends DaemonAnalyzerTestCase {
|
||||
doTest("A/src/x/DoTest4junit.java", false);
|
||||
}
|
||||
|
||||
public void testAddCheckerFrameworkTainted() {
|
||||
doTest("A/src/x/AddCheckerFrameworkTainted.java", false);
|
||||
}
|
||||
|
||||
public void testAddCheckerFrameworkUntainted() {
|
||||
doTest("A/src/x/AddCheckerFrameworkUntainted.java", false);
|
||||
}
|
||||
|
||||
public void testExistingJunit() {
|
||||
doTest("B/src/y/AddExistingJunit.java", true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user