RFR: 8318204: Use new EventTarget methods in ListenerHelper

John Hendrikx jhendrikx at openjdk.org
Tue Oct 17 07:27:33 UTC 2023


On Tue, 17 Oct 2023 04:46:12 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

> As of OpenJFX 21, `EventTarget` has methods to add and remove event listeners.
> The `instanceof` checks in `com.sun.javafx.scene.control.ListenerHelper` should be removed and replaced by a simple call to the respective interface method.

Nice little clean-up!

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

Marked as reviewed by jhendrikx (Committer).

PR Review: https://git.openjdk.org/jfx/pull/1262#pullrequestreview-1681546795


More information about the openjfx-dev mailing list