From 42df1a99b7dc4203629150792c3f93469b315195 Mon Sep 17 00:00:00 2001 From: Harshitha Onkar Date: Wed, 29 Mar 2023 16:50:24 +0000 Subject: [PATCH] 8304991: Redundant hyphen in @param results in double-dash in javadocs Reviewed-by: psadhukhan --- src/java.desktop/share/classes/java/awt/List.java | 2 +- .../share/classes/java/awt/font/FontRenderContext.java | 4 ++-- .../share/classes/javax/accessibility/AccessibleContext.java | 2 +- src/java.desktop/share/classes/javax/swing/JComponent.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/java.desktop/share/classes/java/awt/List.java b/src/java.desktop/share/classes/java/awt/List.java index d3130eb5502..fe7ebb58431 100644 --- a/src/java.desktop/share/classes/java/awt/List.java +++ b/src/java.desktop/share/classes/java/awt/List.java @@ -1949,7 +1949,7 @@ public class List extends Component implements ItemSelectable, Accessible { /** * Resizes this object so that it has width and height. * - * @param d - The dimension specifying the new size of the object. + * @param d The dimension specifying the new size of the object. * @see #getSize */ public void setSize(Dimension d) { diff --git a/src/java.desktop/share/classes/java/awt/font/FontRenderContext.java b/src/java.desktop/share/classes/java/awt/font/FontRenderContext.java index 448fa051ae0..e6cac8fe4a9 100644 --- a/src/java.desktop/share/classes/java/awt/font/FontRenderContext.java +++ b/src/java.desktop/share/classes/java/awt/font/FontRenderContext.java @@ -126,13 +126,13 @@ public class FontRenderContext { * @param tx the transform which is used to scale typographical points * to pixels in this {@code FontRenderContext}. If null, an * identity transform is used. - * @param aaHint - one of the text antialiasing rendering hint values + * @param aaHint one of the text antialiasing rendering hint values * defined in {@link java.awt.RenderingHints java.awt.RenderingHints}. * Any other value will throw {@code IllegalArgumentException}. * {@link java.awt.RenderingHints#VALUE_TEXT_ANTIALIAS_DEFAULT VALUE_TEXT_ANTIALIAS_DEFAULT} * may be specified, in which case the mode used is implementation * dependent. - * @param fmHint - one of the text fractional rendering hint values defined + * @param fmHint one of the text fractional rendering hint values defined * in {@link java.awt.RenderingHints java.awt.RenderingHints}. * {@link java.awt.RenderingHints#VALUE_FRACTIONALMETRICS_DEFAULT VALUE_FRACTIONALMETRICS_DEFAULT} * may be specified, in which case the mode used is implementation diff --git a/src/java.desktop/share/classes/javax/accessibility/AccessibleContext.java b/src/java.desktop/share/classes/javax/accessibility/AccessibleContext.java index cff4dd05d26..096ca3aef44 100644 --- a/src/java.desktop/share/classes/javax/accessibility/AccessibleContext.java +++ b/src/java.desktop/share/classes/javax/accessibility/AccessibleContext.java @@ -564,7 +564,7 @@ public abstract class AccessibleContext { * not be treated as the component's accessible parent and is a method that * should only be called by the parent of the accessible child. * - * @param a - {@code Accessible} to be set as the parent + * @param a {@code Accessible} to be set as the parent */ public void setAccessibleParent(Accessible a) { accessibleParent = a; diff --git a/src/java.desktop/share/classes/javax/swing/JComponent.java b/src/java.desktop/share/classes/javax/swing/JComponent.java index 075d1f97843..bad33b52ca1 100644 --- a/src/java.desktop/share/classes/javax/swing/JComponent.java +++ b/src/java.desktop/share/classes/javax/swing/JComponent.java @@ -581,7 +581,7 @@ public abstract class JComponent extends Container implements Serializable, *

* This is a bound property. * - * @param popup - the popup that will be assigned to this component + * @param popup the popup that will be assigned to this component * may be null * @see #getComponentPopupMenu * @since 1.5