On Tue, 24 Jan 2023 23:29:58 GMT, Phil Race <[email protected]> wrote:

> SynthLookAndFeel.load(URL) is problematic because applications need to trust 
> the URL.
> As documented in the bug report there are alternative mechanisms and JDK 
> itself has not used this for the two Synth based L&Fs : Nimbus and GTK.
> So deprecating - for removal - and adding warnings now in the docs is 
> appropriate.

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java 
line 625:

> 623:      * trust, is strongly discouraged.
> 624:      * The alternative mechanisms to load styles from an {@code 
> InputStream}
> 625:      * located as a resource co-located with the application or by

“…an `InputStream` *located* as a resource co-located…”

Will it sound clearer if the word “located” is removed?

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

PR: https://git.openjdk.org/jdk/pull/12175

Reply via email to