KT-19943: Remove redundant special type unboxing calls in J2K

#KT-19943 Fixed
This commit is contained in:
a2kaido
2017-09-02 03:55:02 +09:00
committed by Simon Ogorodnik
parent 65cc5f1589
commit 083c3d8a5d
5 changed files with 78 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import java.util.List;
public class TestSpecialMethodForTypeValue {
public byte testByte(List<Byte> xs) {
return xs.get(0).byteValue();
}
public short testShort(List<Short> xs) {
return xs.get(0).shortValue();
}
public int testInt(List<Integer> xs) {
return xs.get(0).intValue();
}
public long testLong(List<Long> xs) {
return xs.get(0).longValue();
}
public float testFloat(List<Float> xs) {
return xs.get(0).floatValue();
}
public double testDouble(List<Double> xs) {
return xs.get(0).doubleValue();
}
}