Foo.java 10 Condition 'o instanceof B' is always false