Skip to content

Commit

Permalink
tests: fix javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Mar 5, 2024
1 parent 9933bfd commit 5d4d2b7
Show file tree
Hide file tree
Showing 76 changed files with 1,363 additions and 1,156 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@ protected IMarker[] getAllAPTMarkers(IPath path){
/**
* Verifies that the given element has specifics problems and
* only the given problems.
* @see Tests#expectingOnlySpecificProblemsFor(IPath, Problem[]), and
* @see Tests#expectingSpecificProblemsFor(IPath, Problem[], boolean).
* Unfortunately this variant isn't implemented there.
*/
protected void expectingOnlySpecificProblemsFor(IPath root, ExpectedProblem[] expectedProblems) {
if (DEBUG)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void testGeneratedFileInBuilder() throws Exception
}

/**
* Regresses Buzilla 103745 & 95661
* Regresses Buzilla 103745 and 95661
*/

public void testGeneratedFileInBuilder_ProjectRootAsSourceDir() throws Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void testGeneratedFileInBuilder() throws Exception
}

/**
* Regresses Buzilla 103745 & 95661
* Regresses Buzilla 103745 and 95661
*/

public void testGeneratedFileInBuilder_ProjectRootAsSourceDir() throws Exception
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static java.io.File getFileInPlugin(Plugin plugin, IPath path)
* Could use File.renameTo(File) but it's platform dependant.
*
* @param from - The file to move
* @param path - The path to move it to
* @param toPath - The path to move it to
*/
public static void moveFile(File from , String toPath)
throws FileNotFoundException, IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public static void compileTreeAndProcessBinaries(JavaCompiler compiler, List<Str
* @param compiler the system compiler or Eclipse compiler
* @param options will be passed to the compiler
* @param targetFolder the folder to compile
* @param errors a StringWriter into which compiler output will be written
* @param diagnosticListener a DiagnosticListener into which compiler output will be written
* @return true if the compilation was successful
*/
public static boolean compileTreeWithErrors(
Expand Down Expand Up @@ -391,8 +391,8 @@ public static boolean compileTreeWithErrors(
/**
* Recursively collect all the files under some root. Ignore directories named "CVS".
* Used when compiling multiple source files.
* @param files a List<File> to which all the files found will be added
* @return the set of Files under a root folder.
* @param rootFolder a {@code List<File>} to which all the files found will be added
* @param files the set of Files under a root folder to return.
*/
public static void findFilesUnder(File rootFolder, List<File> files) {
for (File child : rootFolder.listFiles()) {
Expand Down Expand Up @@ -585,7 +585,7 @@ public static boolean shouldConvertToIndependentLineDelimiter(File file) {
*
* @param src
* the full path to the resource location.
* @param destFolder
* @param dest
* the full path to the destination location.
*/
public static void copyResource(File src, File dest) throws IOException {
Expand Down Expand Up @@ -653,7 +653,7 @@ public static File copyResource(String resourcePath, File targetFolder) throws I
* named "CVS" will be ignored.
* @param resourceFolderName the name of the source folder, relative to
* <code>[plugin-root]/resources</code>
* @param the absolute path of the destination folder
* @param destFolder the absolute path of the destination folder
*/
public static void copyResources(String resourceFolderName, File destFolder) throws IOException {
File resDir = new File(getPluginDirectoryPath(), RESOURCES_DIR);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ public void test98667() throws JavaModelException {
}

/**
* @bug 164707: ArrayIndexOutOfBoundsException in JavaModelManager if source level == 6.0
* @test Ensure that AIIOB does not longer happen with invalid source level string
* bug 164707: ArrayIndexOutOfBoundsException in JavaModelManager if source level == 6.0
* test Ensure that AIIOB does not longer happen with invalid source level string
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=164707"
*/
public void testBug164707() throws JavaModelException {
Expand All @@ -390,8 +390,8 @@ public void testBug164707() throws JavaModelException {
}

/**
* @bug 75471: [prefs] no re-compile when loading settings
* @test Ensure that changing project preferences is well taking into account while rebuilding project
* bug 75471: [prefs] no re-compile when loading settings
* test Ensure that changing project preferences is well taking into account while rebuilding project
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=75471"
*/
public void _testUpdateProjectPreferences() throws JavaModelException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ public void test24() {
);
}
/**
* Complete after dot, before a number .<|>12
* Complete after dot, before a number {@code .<|>12}
*/
public void test25() {
this.runTestCheckMethodParse(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ protected void verifyAllTagsCompletion() {
}

/**
* @tests Test completions for javadoc tag names
* tests Test completions for javadoc tag names
*/
public void test001() {
String source = "package javadoc;\n" +
Expand Down Expand Up @@ -347,7 +347,7 @@ public void test007() {
verifyAllTagsCompletion();
}
/**
* @bug [javadoc][assist] @linkplain no longer proposed when 1.4 compliance is used
* bug [javadoc][assist] @linkplain no longer proposed when 1.4 compliance is used
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=123096"
*/
public void test008() {
Expand All @@ -363,8 +363,8 @@ public void test008() {
}

/**
* @tests Tests to verify completion node flags
* @bug 113506: [javadoc][assist] No tag proposals when there is a prefix on a line
* tests Tests to verify completion node flags
* bug 113506: [javadoc][assist] No tag proposals when there is a prefix on a line
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=113506"
*/
public void test010() {
Expand Down Expand Up @@ -450,7 +450,7 @@ public void test015() {
}

/**
* @test Bug 113469: CompletionOnJavadocTag token is not correct
* test Bug 113469: CompletionOnJavadocTag token is not correct
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=113649"
*/
public void test020() {
Expand Down Expand Up @@ -537,7 +537,7 @@ public void test024() {
}

/**
* @test Bug 114091: [assist][javadoc] eternal loop
* test Bug 114091: [assist][javadoc] eternal loop
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=114091"
*/
public void test025() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ public void test25() {
}

/**
* @bug 192449: [javadoc][assist] SelectionJavadocParser should not report problems
* bug 192449: [javadoc][assist] SelectionJavadocParser should not report problems
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=192449"
*/
public void test26() {
Expand Down

0 comments on commit 5d4d2b7

Please sign in to comment.