Debian Codegraph @

framework/tests/all-systems/Issue738.java

raw
1 // Testcase for #738
2 // https://github.com/typetools/checker-framework/issues/738
3 // Also, see checker/tests/nullness/Issue738.java
4 @SuppressWarnings("") // This testcase is checking for crashes.
5 public class Issue738 {
6 public static void methodA() {
7 methodB(0, new Object()); // This compiles fine.
8 methodB(new int[0], new Object[0]); // This crashes.
9 }
10
11 private static <T> void methodB(T paramA, T paramB) {
12 // Do nothing.
13 }
14 }