Removed 'Integer.valueOf()' boxing of literals

This commit is contained in:
Dmitry Cherniachenko
2017-04-20 22:49:24 +02:00
committed by Egor.Ushakov
parent 40c4d82996
commit 5f292c415c
5 changed files with 134 additions and 109 deletions

View File

@@ -12,6 +12,7 @@ public class TestPrimitives {
printDouble(1.23);
printChar('Z');
String.format("%b, %d, %d, %d, %c", true, 1, 213, 40_000, 'c', 42L);
System.out.println(String.format("%b, %d, %d, %d", getBoolean(), getByte(), getShort(), getInt()));
}