From bd6867a836dcac5681c7bc262d9707a348f61f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Thu, 7 Dec 2023 15:36:04 +0200 Subject: [PATCH] Javadoc format fixes Contributes to https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/pull/1531 --- .../jdt/core/compiler/CharOperation.java | 2 ++ .../eclipse/jdt/core/compiler/IProblem.java | 2 +- .../dom/org/eclipse/jdt/core/dom/ASTNode.java | 2 ++ .../eclipse/jdt/core/dom/ITypeBinding.java | 2 +- .../eclipse/jdt/core/dom/InfixExpression.java | 2 +- .../eclipse/jdt/core/dom/RecordPattern.java | 2 ++ .../jdt/core/dom/rewrite/ImportRewrite.java | 2 +- .../formatter/CodeFormatterApplication.java | 1 - .../DefaultCodeFormatterConstants.java | 34 +++++++++---------- .../core/formatter/IndentManipulation.java | 2 +- .../eclipse/jdt/core/CompletionProposal.java | 2 +- .../model/org/eclipse/jdt/core/Flags.java | 2 +- .../org/eclipse/jdt/core/ICodeAssist.java | 20 ++++++----- .../eclipse/jdt/core/IJavaElementDelta.java | 2 +- .../model/org/eclipse/jdt/core/IType.java | 5 ++- .../model/org/eclipse/jdt/core/JavaCore.java | 8 ++--- .../model/org/eclipse/jdt/core/Signature.java | 22 +++++++++--- .../eclipse/jdt/core/WorkingCopyOwner.java | 3 +- .../jdt/core/eval/IEvaluationContext.java | 6 ++-- .../org/eclipse/jdt/core/jdom/IDOMMethod.java | 4 +-- .../org/eclipse/jdt/core/jdom/IDOMType.java | 4 +-- 21 files changed, 77 insertions(+), 52 deletions(-) diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/CharOperation.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/CharOperation.java index e6c0b79af2c..02df6a076a7 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/CharOperation.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/CharOperation.java @@ -4047,11 +4047,13 @@ public static final char[][] splitOn( * For example: *
    *
  1. + * {@code
      *    divider = ','
      *    array = { 'A' , '<', 'B', ',', 'C', '>', ',', 'D' }
      *    start = 0
      *    end = 8
      *    result => { {  'A' , '<', 'B', ',', 'C', '>'}, { 'D' }}
    + * }
      * 
    *
  2. *
diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/IProblem.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/IProblem.java index 003cdb30a64..ae314990aa0 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/IProblem.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/jdt/core/compiler/IProblem.java @@ -353,7 +353,7 @@ public interface IProblem { /** * Problem Categories * The high bits of a problem ID contains information about the category of a problem. - * For example, (problemID & TypeRelated) != 0, indicates that this problem is type related. + * For example, (problemID & TypeRelated) != 0, indicates that this problem is type related. * * A problem category can help to implement custom problem filters. Indeed, when numerous problems * are listed, focusing on import related problems first might be relevant. diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java index 141585a5ce5..19d602d429b 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTNode.java @@ -1819,6 +1819,7 @@ public final ASTNode getParent() { * Returns the location of this node within its parent, * or null if this is a root node. *
+	 * {@code
 	 * ASTNode node = ...;
 	 * ASTNode parent = node.getParent();
 	 * StructuralPropertyDescriptor location = node.getLocationInParent();
@@ -1827,6 +1828,7 @@ public final ASTNode getParent() {
 	 *    assert parent.getStructuralProperty(location) == node;
 	 * if ((location != null) && location.isChildListProperty())
 	 *    assert ((List) parent.getStructuralProperty(location)).contains(node);
+	 * }
 	 * 
*

* Note that the relationship between an AST node and its parent node diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ITypeBinding.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ITypeBinding.java index cb2c430eb07..6ecff74f4f6 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ITypeBinding.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ITypeBinding.java @@ -59,7 +59,7 @@ public interface ITypeBinding extends IBinding { * * @param dimension the given dimension * @return an array type binding - * @throws IllegalArgumentException: