1 2 3 4 5 6 7 8 9 10 11 12 13
import org.aspectj.testing.Tester; public class AssertsCF { public static void main(String[] args) { int x = 0; boolean b; assert b; // ERR: b might not be assigned assert b=false; if (b) {} // ERR: b might not be assigned } }