Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8297695: Fix typos in test/langtools files #11387

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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.
*
Expand Down Expand Up @@ -1593,4 +1593,4 @@ void write() {
}
}

}
}
2 changes: 1 addition & 1 deletion test/langtools/tools/javac/VersionOpt.java
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
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
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
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
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
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
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
@@ -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
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