Adding test case for bug '[2115761] False +: System.arraycopy is more efficient'

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6811 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Romain Pelisse
2009-01-31 21:39:39 +00:00
parent d740f68a94
commit ca664ea719

View File

@ -123,4 +123,20 @@ public class Foo {
} }
]]></code> ]]></code>
</test-code> </test-code>
<test-code regressionTest="false">
<description><![CDATA[
[2115761] False +: System.arraycopy is more efficient
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
public void xxxx(byte[] ayInputChannelNumber)
{
int[] aiInputChannelNumber = new int[ayInputChannelNumber.length];
for (int i = 0; i < aiInputChannelNumber.length; i++)
{
aiInputChannelNumber[i] = ayInputChannelNumber[i];
}
}
]]></code>
</test-code>
</test-data> </test-data>