Debian Codegraph @

framework/tests/all-systems/IsSubarrayEq.java

raw
1 import java.util.List;
2 import org.checkerframework.common.value.qual.MinLen;
3
4 public class IsSubarrayEq {
5 // the Interning checker correctly issues an error below, but we would like to keep this test in
6 // all-systems.
7 // Fenum Checker should not issue a warning. See issue 789
8 // https://github.com/typetools/checker-framework/issues/789
9 @SuppressWarnings({"Interning", "fenum:return.type.incompatible"})
10 public static boolean isSubarrayEq(Object @MinLen(1) [] a, List<?> sub) {
11 return (sub.get(0) != a[0]);
12 }
13 }