mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
DivideByZeroInspection: add fix for 0.0/0.0 (replace with NaN)
Fixes IDEA-117884 Inspection "Divide by zero": Recognize 0.0/0.0
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with 'NaN'" "true"
|
||||
class Test {
|
||||
public void test() {
|
||||
double nan = Double.NaN;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with 'NaN'" "false"
|
||||
class Test {
|
||||
public void test() {
|
||||
double nan = 0/<caret>0;
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Replace with 'NaN'" "true"
|
||||
class Test {
|
||||
public void test() {
|
||||
double nan = 0.0/<caret>0.0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user