class Some { void foo() { Object o = null; while (equals(3)) { if (equals(2)) { if (o == null) { o = new String(); } } if (o == null || o instanceof String) { System.out.println(o); } } } }