class Scratch { private String s = null; void foo() { s = "1"; s = "2"; if (s == null) { throw new IllegalStateException("drunk"); } } }