mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
moving tests to CE
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>5</line>
|
||||
<method>
|
||||
<name>void foo(boolean param)</name>
|
||||
<display_name>foo(boolean)</display_name>
|
||||
<package><default></package>
|
||||
<class>
|
||||
<name>Y</name>
|
||||
<display_name>Y</display_name>
|
||||
</class>
|
||||
</method>
|
||||
<problem_class>Constant conditions & exceptions</problem_class>
|
||||
<description>Condition <code>CONST</code> is always <code>true</code>.</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -0,0 +1,9 @@
|
||||
public class Y {
|
||||
private static final boolean CONST = true;
|
||||
|
||||
public void foo(boolean param) {
|
||||
boolean b = CONST || param;
|
||||
if (CONST) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user