<Swing Dev> RFR 8249838: javax.swing.JLayeredPane has used valueOf twice in example code in documentation

Jayathirth D v JAYATHIRTH.D.V at ORACLE.COM
Thu Aug 6 04:30:48 UTC 2020


+1.

Thanks,
Jay

> On 06-Aug-2020, at 9:21 AM, Prasanta Sadhukhan <prasanta.sadhukhan at oracle.com> wrote:
> 
> Hi All,
> 
> Please review a doc fix where details section of JLayeredPane has used valueOf twice as a typo
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8249838 <https://bugs.openjdk.java.net/browse/JDK-8249838>
> hg diff src/java.desktop/share/classes/javax/swing/JLayeredPane.java
> diff -r cda47533b1ee src/java.desktop/share/classes/javax/swing/JLayeredPane.java
> --- a/src/java.desktop/share/classes/javax/swing/JLayeredPane.java      Wed Jul 22 07:46:50 2020 -0700
> +++ b/src/java.desktop/share/classes/javax/swing/JLayeredPane.java      Thu Aug 06 09:18:28 2020 +0530
> @@ -95,7 +95,7 @@
>   * <PRE>
>   *     layeredPane.add(child, JLayeredPane.DEFAULT_LAYER);
>   * or
> - *     layeredPane.add(child, Integer.valueOf.valueOf(10));
> + *     layeredPane.add(child, Integer.valueOf(10));
>   * </PRE>
>   * The layer attribute can also be set on a Component by calling<PRE>
>   *     layeredPaneParent.setLayer(child, 10)</PRE>
> 
> Regards
> Prasanta

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20200806/a89e21bb/attachment.htm>


More information about the swing-dev mailing list