You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DefiniteStatic.java 295B

1234567891011
  1. class Type { }
  2. class bat {
  3. public static final Type SOURCE = new Type();
  4. }
  5. public class DefiniteStatic {
  6. protected static final Type SINK = bat.SOURCE;
  7. public Type sink = SINK; // incorrect CE: field SINK might not have a value
  8. public static void main(String[] args) { }
  9. }