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

2022-11-29 Thread Kevin Rushforth
On Mon, 28 Nov 2022 17:04:17 GMT, John Hendrikx wrote: >> - Remove unsupported/unnecessary SuppressWarning annotations >> - Remove reduntant type specifications (use diamond operator) >> - Remove unused or duplicate imports >> - Remove unnecessary casts (type is already correct type or can be aut

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

2022-11-29 Thread Nir Lisker
On Mon, 28 Nov 2022 17:04:17 GMT, John Hendrikx wrote: >> - Remove unsupported/unnecessary SuppressWarning annotations >> - Remove reduntant type specifications (use diamond operator) >> - Remove unused or duplicate imports >> - Remove unnecessary casts (type is already correct type or can be aut

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

2022-11-29 Thread Kevin Rushforth
On Tue, 29 Nov 2022 21:47:05 GMT, John Hendrikx wrote: >> I see that this change has been reverted. That's good. >> >> FWIW, I disagree with the original premise of removing it. The subclass >> shouldn't have to know or care that the superclass method is empty or not. >> >> I looked through th

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

2022-11-29 Thread John Hendrikx
On Tue, 29 Nov 2022 21:36:11 GMT, Kevin Rushforth wrote: >> I think that we should refrain from making "structural" changes in this >> pass. Let's keep the warning on and deal with these later. > > I see that this change has been reverted. That's good. > > FWIW, I disagree with the original pre

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

2022-11-29 Thread Kevin Rushforth
On Wed, 23 Nov 2022 21:41:09 GMT, Nir Lisker wrote: >> The `processEndElement` in the base class was an empty method that throws >> `IOException`. By making it `abstract` the warning is avoided, but this >> means the call to `super` here is no longer relevant (it wasn't relevant >> anyway as

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

2022-11-29 Thread Andy Goryachev
On Mon, 28 Nov 2022 17:04:17 GMT, John Hendrikx wrote: >> - Remove unsupported/unnecessary SuppressWarning annotations >> - Remove reduntant type specifications (use diamond operator) >> - Remove unused or duplicate imports >> - Remove unnecessary casts (type is already correct type or can be aut

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

2022-11-28 Thread John Hendrikx
> - Remove unsupported/unnecessary SuppressWarning annotations > - Remove reduntant type specifications (use diamond operator) > - Remove unused or duplicate imports > - Remove unnecessary casts (type is already correct type or can be autoboxed) > - Remove unnecessary semi-colons (at end of class d

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

2022-11-28 Thread John Hendrikx
On Tue, 22 Nov 2022 19:10:27 GMT, Kevin Rushforth wrote: >> modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java line 1446: >> >>> 1444: } >>> 1445: } >>> 1446: >> >> this suggests a specific pattern, even though there is probably no >> development expected in thi

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

2022-11-23 Thread Nir Lisker
On Tue, 22 Nov 2022 18:52:32 GMT, John Hendrikx wrote: >> modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java line 1446: >> >>> 1444: @Override >>> 1445: public void processEndElement() throws IOException { >>> 1446: super.processEndElement(); >> >> I don't

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

2022-11-22 Thread Kevin Rushforth
On Tue, 22 Nov 2022 19:06:47 GMT, John Hendrikx wrote: >> - Remove unsupported/unnecessary SuppressWarning annotations >> - Remove reduntant type specifications (use diamond operator) >> - Remove unused or duplicate imports >> - Remove unnecessary casts (type is already correct type or can be aut

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

2022-11-22 Thread Kevin Rushforth
On Tue, 22 Nov 2022 18:35:36 GMT, Andy Goryachev wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix indent of 5 spaces to 4 spaces > > modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java line 1446: > >

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

2022-11-22 Thread John Hendrikx
> - Remove unsupported/unnecessary SuppressWarning annotations > - Remove reduntant type specifications (use diamond operator) > - Remove unused or duplicate imports > - Remove unnecessary casts (type is already correct type or can be autoboxed) > - Remove unnecessary semi-colons (at end of class d

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

2022-11-22 Thread John Hendrikx
On Tue, 22 Nov 2022 18:45:13 GMT, Andy Goryachev wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Revert changes to javafx.web src/main/native > > modules/javafx.swing/src/main/java/com/sun/javafx/embed/swing/newim

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

2022-11-22 Thread Andy Goryachev
On Tue, 22 Nov 2022 16:49:52 GMT, John Hendrikx wrote: >> - Remove unsupported/unnecessary SuppressWarning annotations >> - Remove reduntant type specifications (use diamond operator) >> - Remove unused or duplicate imports >> - Remove unnecessary casts (type is already correct type or can be aut

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

2022-11-22 Thread John Hendrikx
On Tue, 22 Nov 2022 18:41:18 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Revert changes to javafx.web src/main/native > > modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java line 1446

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

2022-11-22 Thread Andy Goryachev
On Tue, 22 Nov 2022 18:45:58 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix warnings in fxml > > modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java line 1497: > >> 1495: pu

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

2022-11-22 Thread John Hendrikx
On Tue, 22 Nov 2022 18:30:00 GMT, Andy Goryachev wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Revert changes to javafx.web src/main/native > > modules/javafx.fxml/src/main/java/javafx/fxml/FXMLLoader.java line

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

2022-11-22 Thread Andy Goryachev
On Tue, 22 Nov 2022 18:54:11 GMT, John Hendrikx 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

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

2022-11-22 Thread Nir Lisker
On Tue, 22 Nov 2022 16:43:06 GMT, John Hendrikx wrote: >> - Remove unsupported/unnecessary SuppressWarning annotations >> - Remove reduntant type specifications (use diamond operator) >> - Remove unused or duplicate imports >> - Remove unnecessary casts (type is already correct type or can be aut

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

2022-11-22 Thread Nir Lisker
On Tue, 22 Nov 2022 16:49:52 GMT, John Hendrikx wrote: >> - Remove unsupported/unnecessary SuppressWarning annotations >> - Remove reduntant type specifications (use diamond operator) >> - Remove unused or duplicate imports >> - Remove unnecessary casts (type is already correct type or can be aut

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

2022-11-22 Thread John Hendrikx
On Tue, 22 Nov 2022 15:09:30 GMT, Kevin Rushforth wrote: > I just noticed that this touches files under `javafx.web/src/main/native`. > This will cause extra work for us, since we keep all of the files under > `javafx.web/src/main/native` in sync across release families (and we will > definite

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

2022-11-22 Thread John Hendrikx
> - Remove unsupported/unnecessary SuppressWarning annotations > - Remove reduntant type specifications (use diamond operator) > - Remove unused or duplicate imports > - Remove unnecessary casts (type is already correct type or can be autoboxed) > - Remove unnecessary semi-colons (at end of class d

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

2022-11-22 Thread John Hendrikx
> - Remove unsupported/unnecessary SuppressWarning annotations > - Remove reduntant type specifications (use diamond operator) > - Remove unused or duplicate imports > - Remove unnecessary casts (type is already correct type or can be autoboxed) > - Remove unnecessary semi-colons (at end of class d