RFR: 8276042: Remove unused local variables in java.naming [v2]
Andrey Turbanov
duke at openjdk.java.net
Wed Oct 27 15:42:33 UTC 2021
On Wed, 27 Oct 2021 11:08:31 GMT, Aleksei Efimov <aefimov at 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
More information about the core-libs-dev
mailing list