javax.swing.GroupLayout.createParallelGroup(..) doesn't throw IllegalArgumentException for null arg

XMLWordPrintable

    • b120
    • generic
    • generic
    • Verified

        None of the following lines will cause IllegalArgumentException

                GroupLayout groupLayout = new GroupLayout(new JPanel());
                groupLayout.createParallelGroup(null);
                groupLayout.createParallelGroup(null, true);
                groupLayout.createParallelGroup(null, false);
         
        While spec says for both methods:

        Throws:
            IllegalArgumentException - if alignment is null

              Assignee:
              Pavel Porvatov (Inactive)
              Reporter:
              Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: