Add failing test for #2440
This commit is contained in:
1 parent
d4b99bb047
commit
8b18e9524b
1 file changed
+9
+9
@@ -278,4 +278,13 @@ public class Test {
|
||||
]]></code>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description>FN when the right side of the assignment is a constant expression #2440</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<code><![CDATA[
|
||||
public class Test {
|
||||
private final double HALF_PI = Math.PI * 0.5; // false-negative
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
Reference in new issue
Block a user