[PATCH] [Fernflower] prevent null to be cast as short/byte

This commit is contained in:
Alexandru-Constantin Bledea
2017-10-25 19:42:06 +03:00
committed by Egor Ushakov
parent e7854376b8
commit c241278aee
6 changed files with 94 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
package pkg;
class TestPrimitiveNarrowing {
TestPrimitiveNarrowing(Short value) {
}
static void invocations() {
withInteger(null);
withShort(null);
withByte(null);
new TestPrimitiveNarrowing(null);
}
static void withByte(Byte defaultValue) {
}
static void withInteger(Integer defaultValue) {
}
static void withShort(Short defaultValue) {
}
}