On Wed, 19 Apr 2023 21:29:05 GMT, Archie L. Cobbs <[email protected]> wrote:
> The `Introspector` class was never updated to include `default` methods
> inherited from interfaces.
>
> This patch attempts to fix that omission.
src/java.desktop/share/classes/com/sun/beans/introspect/MethodInfo.java line 46:
> 44: final class MethodInfo {
> 45:
> 46: static final HashSet<Class<?>> IGNORABLE_INTERFACES = new
> HashSet<>(6);
Suggestion:
static final HashSet<Class<?>> IGNORABLE_INTERFACES = HashSet.newHashSet(6);
Or even better, use Set.of instead.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13544#discussion_r1171880936