From 666a9d7f608fb2d46bd524344e6f97ec5bd487d4 Mon Sep 17 00:00:00 2001 From: alexp Date: Fri, 17 Sep 2010 23:00:34 +0400 Subject: [PATCH] 6606019: NPE and IAE are interchanged in specification for GroupLayout.Group class Reviewed-by: rupashka --- src/share/classes/javax/swing/GroupLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/classes/javax/swing/GroupLayout.java b/src/share/classes/javax/swing/GroupLayout.java index a343b7bc8..7628076a9 100644 --- a/src/share/classes/javax/swing/GroupLayout.java +++ b/src/share/classes/javax/swing/GroupLayout.java @@ -1464,8 +1464,8 @@ public class GroupLayout implements LayoutManager2 { * <= {@code pref} <= {@code max}. *

* 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 -- GitLab