On Wed, 27 Oct 2021 11:08:31 GMT, Aleksei Efimov <aefi...@openjdk.org> wrote:
>> Andrey Turbanov has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8276042: Remove unused local variables in java.naming >> use instanceof pattern > > src/java.naming/share/classes/com/sun/jndi/toolkit/ctx/PartialCompositeContext.java > line 514: > >> 512: Object obj = cont.getResolvedObj(); >> 513: >> 514: if (obj instanceof PartialCompositeContext) { > > Since we're changing this method, maybe `instanceof` pattern matching can be > used here to remove casting below. done ------------- PR: https://git.openjdk.java.net/jdk/pull/6091