forked from phoedos/pmd
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:
@ -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>
|
||||
|
Reference in New Issue
Block a user