6606019: NPE and IAE are interchanged in specification for GroupLayout.Group class
authoralexp
Fri, 17 Sep 2010 23:00:34 +0400
changeset 6648 6b796dace707
parent 6647 9d119d6c36b9
child 6649 3a9910603ab2
6606019: NPE and IAE are interchanged in specification for GroupLayout.Group class Reviewed-by: rupashka
jdk/src/share/classes/javax/swing/GroupLayout.java
--- a/jdk/src/share/classes/javax/swing/GroupLayout.java	Fri Sep 17 22:50:44 2010 +0400
+++ b/jdk/src/share/classes/javax/swing/GroupLayout.java	Fri Sep 17 23:00:34 2010 +0400
@@ -1464,8 +1464,8 @@
      * <= {@code pref} <= {@code max}.
      * <p>
      * Similarly any methods that take a {@code Component} throw a
-     * {@code NullPointerException} if passed {@code null} and any methods
-     * that take a {@code Group} throw an {@code IllegalArgumentException} if
+     * {@code IllegalArgumentException} if passed {@code null} and any methods
+     * that take a {@code Group} throw an {@code NullPointerException} if
      * passed {@code null}.
      *
      * @see #createSequentialGroup