6606019: NPE and IAE are interchanged in specification for GroupLayout.Group class
Reviewed-by: rupashka
--- 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