pmd: verify #937 OptimizableToArrayCall does not catch multilevel method chains
This commit is contained in:
1 parent
f0d8759b79
commit
7c440fd42e
1 file changed
+12
+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>
|
||||
Reference in new issue
Block a user