Skip to content

Commit 00a1fe9

Browse files
committed
8297695: Fix typos in test/langtools files
Backport-of: e10778accef05bb17eea20d589086b50e366dc4d
1 parent 1ae82df commit 00a1fe9

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

test/langtools/jdk/javadoc/lib/javadoc/tester/JavadocTester.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ public void checkLinks() {
730730

731731
/**
732732
* Shows the heading structure for each of the specified files.
733-
* The structure is is printed in plain text to the main output stream.
733+
* The structure is printed in plain text to the main output stream.
734734
* No errors are reported (unless there is a problem reading a file)
735735
* but missing headings are noted within the output.
736736
*

test/langtools/tools/javac/VersionOpt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void run() throws Exception {
4646
// As such, it is only effective in testing the "standard" compiler,
4747
// and not any development version being tested via --patch-modules.
4848
// Check the version of the compiler being used, and let the test pass
49-
// automatically if is is a development version.
49+
// automatically if it is a development version.
5050
Class<?> javacClass = com.sun.tools.javac.Main.class;
5151
URL location = javacClass.getProtectionDomain().getCodeSource().getLocation();
5252
if (!location.toString().equals("jrt:/jdk.compiler")) {

test/langtools/tools/javac/annotations/typeAnnotations/classfile/CombinationsTargetTest2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class CombinationsTargetTest2 extends ClassfileTestHelper {
4242

4343
// Base test case template descriptions;true==annotations in code attribute.
4444
enum srce {
45-
src1("(repeating) type annotations on on field in method body",true),
45+
src1("(repeating) type annotations on field in method body",true),
4646
src2("(repeating) type annotations on type parameters, bounds and type arguments", true),
4747
src3("(repeating) type annotations on type parameters of class, method return value in method", true),
4848
src4("(repeating) type annotations on field in anonymous class", false),

test/langtools/tools/javac/diags/ArgTypeCompilerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
/**
4444
* Compiler factory for instances of Example.Compiler that use custom
4545
* DiagnosticFormatter and Messages objects to track the types of args
46-
* when when localizing diagnostics.
46+
* when localizing diagnostics.
4747
* The compiler objects only support "output" mode, not "check" mode.
4848
*/
4949
class ArgTypeCompilerFactory implements Example.Compiler.Factory {

test/langtools/tools/javac/lambda/VoidCompatibility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @test /nodynamiccopyright/
33
* @bug 8003280
44
* @summary Add lambda tests
5-
* check that that void compatibility affects overloading as expected
5+
* check that void compatibility affects overloading as expected
66
* @compile VoidCompatibility.java
77
*/
88
class VoidCompatibility {

test/langtools/tools/javac/processing/filer/TestFilerConstraints.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public boolean process(Set<? extends TypeElement> annotations,
168168
}
169169

170170
/**
171-
* Test that the single expected expected type, name, is the root
171+
* Test that the single expected type, name, is the root
172172
* element.
173173
*/
174174
private void testExpectedType(RoundEnvironment roundEnv, String name) {

test/langtools/tools/javac/scope/DupUnsharedTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void assertEquals(Set<Symbol> set1, Set<Symbol> set2) {
125125
}
126126

127127
/**
128-
* This tests tests the following situation.
128+
* This tests the following situation.
129129
* - consider empty Scope S1
130130
* - a Symbol with name 'A' is added into S1
131131
* - S1 is dupped into S2

test/langtools/tools/javac/tree/T8024415.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void testAssociativity() throws IOException {
8686
}
8787

8888

89-
// The true-part of of a conditional expression is surrounded by ? and :
89+
// The true-part of a conditional expression is surrounded by ? and :
9090
// and can thus always be parsed unambiguously without surrounding
9191
// parentheses.
9292
public void testPrecedence() throws IOException {

test/langtools/tools/javac/warnings/6594914/T6594914a.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @test /nodynamiccopyright/
33
* @bug 6594914
4-
* @summary \\@SuppressWarnings("deprecation") does not not work for the type of a variable
4+
* @summary \\@SuppressWarnings("deprecation") does not work for the type of a variable
55
* @compile/ref=T6594914a.out -XDrawDiagnostics -Xlint:deprecation T6594914a.java
66
*/
77

test/langtools/tools/lib/builder/ClassBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ public MethodBuilder setReturn(String returnType) {
550550
}
551551

552552
/**
553-
* Adds a parameter(s) to the method method builder.
553+
* Adds a parameter(s) to the method builder.
554554
* @param params a pair consisting of type and parameter name.
555555
* @return this method builder.
556556
*/
@@ -560,7 +560,7 @@ public MethodBuilder addParameters(Pair... params) {
560560
}
561561

562562
/**
563-
* Adds a parameter to the method method builder.
563+
* Adds a parameter to the method builder.
564564
* @param type the type of parameter.
565565
* @param name the parameter name.
566566
* @return this method builder.

0 commit comments

Comments
 (0)