# HG changeset patch # User ssides # Date 1423656633 -10800 # Node ID 4b9b5be3b7ad132b2d75a5447dc5a6d7502d401b # Parent fcc330d07e3d842083cf4313c6e76773be0266ee 8044394: javadoc for BasicOptionPaneUI.addMessageComponents() has typo and grammar errors Summary: Fix typos in javadoc of BasicOptionPaneUI.addMessageComponents() Reviewed-by: alexsch, serb diff -r fcc330d07e3d -r 4b9b5be3b7ad jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java Wed Feb 11 07:54:39 2015 +0100 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicOptionPaneUI.java Wed Feb 11 15:10:33 2015 +0300 @@ -377,15 +377,16 @@ } /** - * Creates the appropriate object to represent {@code msg} and - * places it into {@code container}. If {@code msg} is an instance of - * {@code Component}, it is added directly, if it is an {@code Icon}, - * a {@code JLabel} is created to represent it, otherwise a {@code JLabel} is - * created for the string, if {@code d} is an Object[], this method - * will be recursively invoked for the children. {@code internallyCreated} is - * {@code true} if Objc is an instance of {@code Component} and was created - * internally by this method (this is used to correctly set - * {@code hasCustomComponents} only if {@code internallyCreated} is {@code false}). + * Creates the appropriate object to represent {@code msg} and places it + * into {@code container}. If {@code msg} is an instance of + * {@code Component}, it is added directly; if it is an {@code Icon}, a + * {@code JLabel} is created to represent it; otherwise, a {@code JLabel} + * is created for the string. If {@code msg} is an Object[], this method + * will be recursively invoked for the children. {@code internallyCreated} + * is {@code true} if {@code msg} is an instance of {@code Component} and + * was created internally by this method (this is used to correctly set + * {@code hasCustomComponents} only if {@code internallyCreated} is + * {@code false}). * * @param container a container * @param cons an instance of {@code GridBagConstraints}