RFR: JDK-8297412: Remove easy warnings in javafx.fxml, javafx.media, javafx.swing, javafx.swt and javafx.web [v3]

Andy Goryachev angorya at openjdk.org
Tue Nov 22 19:00:21 UTC 2022


On Tue, 22 Nov 2022 18:54:11 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:

>> modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java line 156:
>> 
>>> 154: 
>>> 155:         @SuppressWarnings("unchecked")
>>> 156:         public void add(Object element) {
>> 
>> by removing a checked exception we are changing public API.  do we really want to do that?
>
> This is part of a private class (`class Element`) that's nested within `FXMLLoader`, not public API.

you are right, please disregard.

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

PR: https://git.openjdk.org/jfx/pull/958


More information about the openjfx-dev mailing list