RFR: JDK-8304959: Public API in javafx.css.Match should not return private API class PseudoClassState [v7]

John Hendrikx jhendrikx at openjdk.org
Wed May 17 22:06:00 UTC 2023


On Wed, 17 May 2023 21:20:28 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> John Hendrikx has updated the pull request incrementally with three additional commits since the last revision:
>> 
>>  - Override hashCode with a comment explaining why
>>  - Fix style issues
>>  - Restore removed public method
>
> modules/javafx.graphics/src/main/java/com/sun/javafx/css/BitSet.java line 532:
> 
>> 530:             return true;
>> 531:         }
>> 532:         if (obj instanceof BitSet<?> bitSet) {  // fast path if other is a BitSet
> 
> I think we may need to add a 'component type' to BitSet, to make sure than BitSet<A> never intersects with BitSet<B>.
> 
> (Didn't we do it already, may be in some other PR?)

We did, in #1076. However, I would like to not pull in all the `BitSet` fixes into this PR as this has nothing to do with `BitSet` and its many problems.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1070#discussion_r1197097814


More information about the openjfx-dev mailing list