Removed 'Integer.valueOf()' boxing of literals
This commit is contained in:
committed by
Egor.Ushakov
parent
40c4d82996
commit
5f292c415c
@@ -15,7 +15,7 @@ public class TestClassLambda {
|
||||
public int field = 0;
|
||||
|
||||
public void testLambda() {
|
||||
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
|
||||
List var1 = Arrays.asList(new Integer[]{1, 2, 3, 4, 5, 6, 7});// 29
|
||||
int var2 = (int)Math.random();// 30
|
||||
var1.forEach((var2x) -> {// 32
|
||||
int var3 = 2 * var2x.intValue();// 33
|
||||
|
||||
Reference in New Issue
Block a user