1.5 test case for Boolean.valueOf added

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4839 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2006-11-30 03:10:17 +00:00
parent af4afaa78b
commit 6645954526

View File

@ -26,4 +26,18 @@ public class Bar {
}
]]></code>
</test-code>
</test-data>
<test-code>
<description><![CDATA[
failure case for 1.5+
]]></description>
<expected-problems>1</expected-problems>
<code><![CDATA[
public class Bar {
void foo(boolean value) {
boolean b = Boolean.valueOf(value).booleanValue();
}
}
]]></code>
<source-type>java 1.5</source-type>
</test-code>
</test-data>