moving tests to CE

This commit is contained in:
Dmitry Jemerov
2009-09-25 21:32:24 +04:00
parent 934e9ad7f7
commit a6d19ca1cb
6 changed files with 5 additions and 0 deletions
@@ -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();
}
}