Skip to content

Commit

Permalink
8297695: Fix typos in test/langtools files
Browse files Browse the repository at this point in the history
Backport-of: e10778accef05bb17eea20d589086b50e366dc4d
  • Loading branch information
GoeLin committed Apr 11, 2024
1 parent 1ae82df commit 00a1fe9
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,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.
*
Expand Down
2 changes: 1 addition & 1 deletion test/langtools/tools/javac/VersionOpt.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion test/langtools/tools/javac/lambda/VoidCompatibility.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public boolean process(Set<? extends TypeElement> 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) {
Expand Down
2 changes: 1 addition & 1 deletion test/langtools/tools/javac/scope/DupUnsharedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void assertEquals(Set<Symbol> set1, Set<Symbol> 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
Expand Down
2 changes: 1 addition & 1 deletion test/langtools/tools/javac/tree/T8024415.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion test/langtools/tools/javac/warnings/6594914/T6594914a.java
Original file line number Diff line number Diff line change
@@ -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
*/

Expand Down
4 changes: 2 additions & 2 deletions test/langtools/tools/lib/builder/ClassBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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.
Expand Down

1 comment on commit 00a1fe9

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.