mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8297695: Fix typos in test/langtools files
Co-authored-by: Michael Ernst <mernst@openjdk.org> Reviewed-by: prappo, jjg, iris
This commit is contained in:
parent
0ce182723b
commit
e10778acce
10 changed files with 12 additions and 12 deletions
|
@ -749,7 +749,7 @@ public abstract class JavadocTester {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Shows the heading structure for each of the specified files.
|
* 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)
|
* No errors are reported (unless there is a problem reading a file)
|
||||||
* but missing headings are noted within the output.
|
* but missing headings are noted within the output.
|
||||||
*
|
*
|
||||||
|
@ -1593,4 +1593,4 @@ public abstract class JavadocTester {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class VersionOpt {
|
||||||
// As such, it is only effective in testing the "standard" compiler,
|
// As such, it is only effective in testing the "standard" compiler,
|
||||||
// and not any development version being tested via --patch-modules.
|
// and not any development version being tested via --patch-modules.
|
||||||
// Check the version of the compiler being used, and let the test pass
|
// 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;
|
Class<?> javacClass = com.sun.tools.javac.Main.class;
|
||||||
URL location = javacClass.getProtectionDomain().getCodeSource().getLocation();
|
URL location = javacClass.getProtectionDomain().getCodeSource().getLocation();
|
||||||
if (!location.toString().equals("jrt:/jdk.compiler")) {
|
if (!location.toString().equals("jrt:/jdk.compiler")) {
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class CombinationsTargetTest2 extends ClassfileTestHelper {
|
||||||
|
|
||||||
// Base test case template descriptions;true==annotations in code attribute.
|
// Base test case template descriptions;true==annotations in code attribute.
|
||||||
enum srce {
|
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),
|
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),
|
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),
|
src4("(repeating) type annotations on field in anonymous class", false),
|
||||||
|
|
|
@ -43,7 +43,7 @@ import javax.lang.model.SourceVersion;
|
||||||
/**
|
/**
|
||||||
* Compiler factory for instances of Example.Compiler that use custom
|
* Compiler factory for instances of Example.Compiler that use custom
|
||||||
* DiagnosticFormatter and Messages objects to track the types of args
|
* 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.
|
* The compiler objects only support "output" mode, not "check" mode.
|
||||||
*/
|
*/
|
||||||
class ArgTypeCompilerFactory implements Example.Compiler.Factory {
|
class ArgTypeCompilerFactory implements Example.Compiler.Factory {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @test /nodynamiccopyright/
|
* @test /nodynamiccopyright/
|
||||||
* @bug 8003280
|
* @bug 8003280
|
||||||
* @summary Add lambda tests
|
* @summary Add lambda tests
|
||||||
* check that that void compatibility affects overloading as expected
|
* check that void compatibility affects overloading as expected
|
||||||
* @compile VoidCompatibility.java
|
* @compile VoidCompatibility.java
|
||||||
*/
|
*/
|
||||||
class VoidCompatibility {
|
class VoidCompatibility {
|
||||||
|
|
|
@ -168,7 +168,7 @@ public class TestFilerConstraints extends JavacTestingAbstractProcessor {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that the single expected expected type, name, is the root
|
* Test that the single expected type, name, is the root
|
||||||
* element.
|
* element.
|
||||||
*/
|
*/
|
||||||
private void testExpectedType(RoundEnvironment roundEnv, String name) {
|
private void testExpectedType(RoundEnvironment roundEnv, String name) {
|
||||||
|
|
|
@ -125,7 +125,7 @@ public class DupUnsharedTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This tests tests the following situation.
|
* This tests the following situation.
|
||||||
* - consider empty Scope S1
|
* - consider empty Scope S1
|
||||||
* - a Symbol with name 'A' is added into S1
|
* - a Symbol with name 'A' is added into S1
|
||||||
* - S1 is dupped into S2
|
* - S1 is dupped into S2
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class T8024415 {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 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
|
// and can thus always be parsed unambiguously without surrounding
|
||||||
// parentheses.
|
// parentheses.
|
||||||
public void testPrecedence() throws IOException {
|
public void testPrecedence() throws IOException {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/**
|
/**
|
||||||
* @test /nodynamiccopyright/
|
* @test /nodynamiccopyright/
|
||||||
* @bug 6594914
|
* @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
|
* @compile/ref=T6594914a.out -XDrawDiagnostics -Xlint:deprecation T6594914a.java
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -550,7 +550,7 @@ public class ClassBuilder extends AbstractBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
* @param params a pair consisting of type and parameter name.
|
||||||
* @return this method builder.
|
* @return this method builder.
|
||||||
*/
|
*/
|
||||||
|
@ -560,7 +560,7 @@ public class ClassBuilder extends AbstractBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a parameter to the method method builder.
|
* Adds a parameter to the method builder.
|
||||||
* @param type the type of parameter.
|
* @param type the type of parameter.
|
||||||
* @param name the parameter name.
|
* @param name the parameter name.
|
||||||
* @return this method builder.
|
* @return this method builder.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue