Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Chandra2019-02-11 04:16:22 +0000
committerManoj Palat2019-02-14 08:56:02 +0000
commitd72112c8968b4b1fb650450aadf69127448ef933 (patch)
tree2fb24d2e5dc3cbae74e5bf6fe99ff202aee62155 /org.eclipse.jdt.core.tests.compiler/src
parent7411c5d64b4f841347cb94c0ae326a6cb0df5581 (diff)
downloadeclipse.jdt.core-d72112c8968b4b1fb650450aadf69127448ef933.tar.gz
eclipse.jdt.core-d72112c8968b4b1fb650450aadf69127448ef933.tar.xz
eclipse.jdt.core-d72112c8968b4b1fb650450aadf69127448ef933.zip
Bug 543996 - [11][javadoc] Support all javadoc tags in module
documentation Change-Id: Ie0358004fcefd9fab47ef08ad973f456bf26c65b Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler/src')
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/JavadocCompletionParserTest.java21
1 files changed, 16 insertions, 5 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/JavadocCompletionParserTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/JavadocCompletionParserTest.java
index 677874c917..a12ef9f626 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/JavadocCompletionParserTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/parser/JavadocCompletionParserTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2014 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -159,6 +159,7 @@ protected void verifyCompletionOnJavadocTag(char[] tag, char[][] expectedTags, b
}
protected void verifyAllTagsCompletion() {
+ char[][] allTagsFinal =null;
char[][] allTags = {
// Block tags
TAG_AUTHOR, TAG_DEPRECATED, TAG_EXCEPTION, TAG_PARAM, TAG_RETURN, TAG_SEE, TAG_VERSION, TAG_CATEGORY,
@@ -168,6 +169,15 @@ protected void verifyAllTagsCompletion() {
TAG_LINK,
TAG_DOC_ROOT,
};
+ char[][] allTagsJava9Plus = {
+ // Block tags
+ TAG_AUTHOR, TAG_DEPRECATED, TAG_EXCEPTION, TAG_PARAM, TAG_RETURN, TAG_SEE, TAG_VERSION, TAG_CATEGORY,
+ TAG_SINCE,
+ TAG_SERIAL, TAG_SERIAL_DATA, TAG_SERIAL_FIELD , TAG_THROWS, TAG_USES, TAG_PROVIDES,
+ // Inline tags
+ TAG_LINK,
+ TAG_DOC_ROOT
+ };
char[][] additionalTags = null;
if(this.complianceLevel == ClassFileConstants.JDK1_4) {
additionalTags = new char[][] {
@@ -179,13 +189,14 @@ protected void verifyAllTagsCompletion() {
TAG_CODE, TAG_LITERAL
};
}
+ allTagsFinal = this.complianceLevel > ClassFileConstants.JDK1_8 ? allTagsJava9Plus : allTags;
if (additionalTags != null) {
- int length = allTags.length;
+ int length = allTagsFinal.length;
int add = additionalTags.length;
- System.arraycopy(allTags, 0, allTags = new char[length+add][], 0, length);
- System.arraycopy(additionalTags, 0, allTags, length, add);
+ System.arraycopy(allTagsFinal, 0, allTagsFinal = new char[length+add][], 0, length);
+ System.arraycopy(additionalTags, 0, allTagsFinal, length, add);
}
- verifyCompletionOnJavadocTag(null, allTags, false);
+ verifyCompletionOnJavadocTag(null, allTagsFinal, false);
}
/**

Back to the top