diff --git a/test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java b/test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java index 57c98b4834fc5..f4bd008d06111 100644 --- a/test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java +++ b/test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java @@ -749,7 +749,7 @@ public void checkLinks() { /** * Shows the heading structure for each of the specified files. - * The structure is is printed in plain text to the main output stream. + * The structure is printed in plain text to the main output stream. * No errors are reported (unless there is a problem reading a file) * but missing headings are noted within the output. * @@ -1593,4 +1593,4 @@ void write() { } } -} \ No newline at end of file +} diff --git a/test/langtools/tools/javac/VersionOpt.java b/test/langtools/tools/javac/VersionOpt.java index fe8224e946ba1..e531cfc6ad809 100644 --- a/test/langtools/tools/javac/VersionOpt.java +++ b/test/langtools/tools/javac/VersionOpt.java @@ -46,7 +46,7 @@ void run() throws Exception { // As such, it is only effective in testing the "standard" compiler, // and not any development version being tested via --patch-modules. // Check the version of the compiler being used, and let the test pass - // automatically if is is a development version. + // automatically if it is a development version. Class javacClass = com.sun.tools.javac.Main.class; URL location = javacClass.getProtectionDomain().getCodeSource().getLocation(); if (!location.toString().equals("jrt:/jdk.compiler")) { diff --git a/test/langtools/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java b/test/langtools/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java index 9db22c56e14a5..2cd93907a1a37 100644 --- a/test/langtools/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java +++ b/test/langtools/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java @@ -42,7 +42,7 @@ public class CombinationsTargetTest2 extends ClassfileTestHelper { // Base test case template descriptions;true==annotations in code attribute. enum srce { - src1("(repeating) type annotations on on field in method body",true), + src1("(repeating) type annotations on field in method body",true), src2("(repeating) type annotations on type parameters, bounds and type arguments", true), src3("(repeating) type annotations on type parameters of class, method return value in method", true), src4("(repeating) type annotations on field in anonymous class", false), diff --git a/test/langtools/tools/javac/diags/ArgTypeCompilerFactory.java b/test/langtools/tools/javac/diags/ArgTypeCompilerFactory.java index fd36e44454b8c..e40109f99f3d8 100644 --- a/test/langtools/tools/javac/diags/ArgTypeCompilerFactory.java +++ b/test/langtools/tools/javac/diags/ArgTypeCompilerFactory.java @@ -43,7 +43,7 @@ /** * Compiler factory for instances of Example.Compiler that use custom * DiagnosticFormatter and Messages objects to track the types of args - * when when localizing diagnostics. + * when localizing diagnostics. * The compiler objects only support "output" mode, not "check" mode. */ class ArgTypeCompilerFactory implements Example.Compiler.Factory { diff --git a/test/langtools/tools/javac/lambda/VoidCompatibility.java b/test/langtools/tools/javac/lambda/VoidCompatibility.java index 41fcf487e8e75..da5934b64248d 100644 --- a/test/langtools/tools/javac/lambda/VoidCompatibility.java +++ b/test/langtools/tools/javac/lambda/VoidCompatibility.java @@ -2,7 +2,7 @@ * @test /nodynamiccopyright/ * @bug 8003280 * @summary Add lambda tests - * check that that void compatibility affects overloading as expected + * check that void compatibility affects overloading as expected * @compile VoidCompatibility.java */ class VoidCompatibility { diff --git a/test/langtools/tools/javac/processing/filer/TestFilerConstraints.java b/test/langtools/tools/javac/processing/filer/TestFilerConstraints.java index 00c919256bfda..e522afa9ce8ff 100644 --- a/test/langtools/tools/javac/processing/filer/TestFilerConstraints.java +++ b/test/langtools/tools/javac/processing/filer/TestFilerConstraints.java @@ -168,7 +168,7 @@ public boolean process(Set annotations, } /** - * Test that the single expected expected type, name, is the root + * Test that the single expected type, name, is the root * element. */ private void testExpectedType(RoundEnvironment roundEnv, String name) { diff --git a/test/langtools/tools/javac/scope/DupUnsharedTest.java b/test/langtools/tools/javac/scope/DupUnsharedTest.java index 6eff753877555..55d23cf38e258 100644 --- a/test/langtools/tools/javac/scope/DupUnsharedTest.java +++ b/test/langtools/tools/javac/scope/DupUnsharedTest.java @@ -125,7 +125,7 @@ void assertEquals(Set set1, Set set2) { } /** - * This tests tests the following situation. + * This tests the following situation. * - consider empty Scope S1 * - a Symbol with name 'A' is added into S1 * - S1 is dupped into S2 diff --git a/test/langtools/tools/javac/tree/T8024415.java b/test/langtools/tools/javac/tree/T8024415.java index 27383a2baa365..ef4b0429a81ad 100644 --- a/test/langtools/tools/javac/tree/T8024415.java +++ b/test/langtools/tools/javac/tree/T8024415.java @@ -86,7 +86,7 @@ public void testAssociativity() throws IOException { } - // The true-part of of a conditional expression is surrounded by ? and : + // The true-part of a conditional expression is surrounded by ? and : // and can thus always be parsed unambiguously without surrounding // parentheses. public void testPrecedence() throws IOException { diff --git a/test/langtools/tools/javac/warnings/6594914/T6594914a.java b/test/langtools/tools/javac/warnings/6594914/T6594914a.java index 04de0ca289cc2..46e47c019ee1e 100644 --- a/test/langtools/tools/javac/warnings/6594914/T6594914a.java +++ b/test/langtools/tools/javac/warnings/6594914/T6594914a.java @@ -1,7 +1,7 @@ /** * @test /nodynamiccopyright/ * @bug 6594914 - * @summary \\@SuppressWarnings("deprecation") does not not work for the type of a variable + * @summary \\@SuppressWarnings("deprecation") does not work for the type of a variable * @compile/ref=T6594914a.out -XDrawDiagnostics -Xlint:deprecation T6594914a.java */ diff --git a/test/langtools/tools/lib/builder/ClassBuilder.java b/test/langtools/tools/lib/builder/ClassBuilder.java index a7b900afc3eb1..feafa77db567f 100644 --- a/test/langtools/tools/lib/builder/ClassBuilder.java +++ b/test/langtools/tools/lib/builder/ClassBuilder.java @@ -550,7 +550,7 @@ public MethodBuilder setReturn(String returnType) { } /** - * Adds a parameter(s) to the method method builder. + * Adds a parameter(s) to the method builder. * @param params a pair consisting of type and parameter name. * @return this method builder. */ @@ -560,7 +560,7 @@ public MethodBuilder addParameters(Pair... params) { } /** - * Adds a parameter to the method method builder. + * Adds a parameter to the method builder. * @param type the type of parameter. * @param name the parameter name. * @return this method builder.