[PATCH] [Fernflower] prevent null to be cast as short/byte
This commit is contained in:
committed by
Egor Ushakov
parent
e7854376b8
commit
c241278aee
24
testData/src/pkg/TestPrimitiveNarrowing.java
Normal file
24
testData/src/pkg/TestPrimitiveNarrowing.java
Normal 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) {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user