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,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>I.java</file>
|
||||
<line>2</line>
|
||||
<description>Return value of the method is never used</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -0,0 +1,10 @@
|
||||
class B implements I {
|
||||
public boolean isUnused(){
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
I i = new B();
|
||||
i.isUnused();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
interface I {
|
||||
boolean isUnused();
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>6</line>
|
||||
<description>Return value of the method is never used</description>
|
||||
</problem>
|
||||
</problems>
|
||||
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
boolean foo() {
|
||||
return false;
|
||||
}
|
||||
|
||||
boolean isUnused() {
|
||||
return !foo();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Test().isUnused();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user