Detect external vararg methods too (if available on the classpath)

This commit is contained in:
Dmitry Cherniachenko
2017-04-18 23:34:08 +02:00
committed by Egor.Ushakov
parent dfd90978c9
commit 94198aa8a5
4 changed files with 80 additions and 7 deletions

View File

@@ -8,11 +8,11 @@ public class TestVarArgCalls {
this.printComplex("Test");// 9
this.printComplex("Test: %[0]s", new String[]{"abc"});// 10
this.printComplex("Test: %[0]s - %[0]s", new String[]{"abc"}, new String[]{"DEF"});// 11
String.format("Test", new Object[0]);// 13
String.format("Test: %d", new Object[]{Integer.valueOf(123)});// 14
String.format("Test: %d - %s", new Object[]{Integer.valueOf(123), "DEF"});// 15
String.format("Test");// 13
String.format("Test: %d", Integer.valueOf(123));// 14
String.format("Test: %d - %s", Integer.valueOf(123), "DEF");// 15
Object[] data = new Object[]{"Hello"};// 17
String.format("Test: %s", new Object[]{data});// 18
String.format("Test: %s", (Object)data);// 18
String.format("Test: %s", (Object[])data);// 19
}// 20
@@ -46,7 +46,6 @@ class 'pkg/TestVarArgCalls' {
68 9
6c 9
6f 10
71 10
75 10
79 11
81 11