IDEA-204223 Decompiler doesn't add mandatory narrowing cast on integer type

This commit is contained in:
Egor Ushakov
2018-12-14 17:56:47 +03:00
parent e9989d15e3
commit f320e3abd4
6 changed files with 499 additions and 476 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,7 @@
package pkg;
import java.util.*;
public class TestPrimitives {
public void printAll() {
@@ -171,4 +173,8 @@ public class TestPrimitives {
Boolean.valueOf(value).hashCode();
}
void testCastRequired() {
HashMap<String, Byte> map = new HashMap<String, Byte>();
map.put("test", (byte) 0);
}
}