mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspection] IDEA-375813 It seems dataflow join works wrong for branching with division by zero
GitOrigin-RevId: c14db3aee067692092d2a96292082d81756c21a5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
aa69a2a5cb
commit
e8b76edbf2
@@ -54,4 +54,16 @@ public class DivideByZero {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void testMayBe(String[] args) {
|
||||
int x = 0;
|
||||
if (args.length==1) x = 100;
|
||||
System.out.println(10 / <warning descr="Maybe division by zero">x</warning>);
|
||||
}
|
||||
|
||||
void testMayBe2(String[] args) {
|
||||
int x = 0;
|
||||
if (args.length==1) x = 1;
|
||||
System.out.println(10 / <warning descr="Maybe division by zero">x</warning>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user