pmd: verify #937 OptimizableToArrayCall does not catch multilevel method chains

This commit is contained in:
Andreas Dangel committed 2013-03-30 15:25:03 +01:00
1 parent f0d8759b79
commit 7c440fd42e
1 file changed
+12
@@ -33,4 +33,16 @@ public class Foo {
}
]]></code>
</test-code>
<test-code>
<description>#937 OptimizableToArrayCall does not catch multilevel method chains</description>
<expected-problems>1</expected-problems>
<code><![CDATA[
public class Test {
public void foo() {
x.y.toArray(new Foo[0]);
}
}
]]></code>
</test-code>
</test-data>