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