if (o instanceof SomeClass) { o.someClassMethod(); }
if (o instanceof SomeClass) { final var s = o; ... }
if (o != null) { final var s = o; ... }
The annoying thing with Java language development is that they just don't seem interested in rounding it out with consistency/completeness.
The annoying thing with Java language development is that they just don't seem interested in rounding it out with consistency/completeness.