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

@@ -15,7 +15,7 @@ public class TestClassLambda {
public int field = 0;
public void testLambda() {
List var1 = Arrays.asList(new Integer[]{Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3), Integer.valueOf(4), Integer.valueOf(5), Integer.valueOf(6), Integer.valueOf(7)});// 29
List var1 = Arrays.asList(Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3), Integer.valueOf(4), Integer.valueOf(5), Integer.valueOf(6), Integer.valueOf(7));// 29
int var2 = (int)Math.random();// 30
var1.forEach((var2x) -> {// 32
int var3 = 2 * var2x.intValue();// 33

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