mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8264664: use text blocks in javac module tests
Reviewed-by: darcy
This commit is contained in:
parent
cec66cf8ef
commit
e8eda655bb
18 changed files with 630 additions and 503 deletions
|
@ -47,11 +47,12 @@ public class HelloWorldTest extends ModuleTestBase {
|
|||
}
|
||||
|
||||
public static final String HELLO_WORLD =
|
||||
"class HelloWorld {\n"
|
||||
+ " public static void main(String... args) {\n"
|
||||
+ " System.out.println(\"Hello World!\");\n"
|
||||
+ " }\n"
|
||||
+ "}";
|
||||
"""
|
||||
class HelloWorld {
|
||||
public static void main(String... args) {
|
||||
System.out.println("Hello World!");
|
||||
}
|
||||
}""";
|
||||
|
||||
public static final String PKG_HELLO_WORLD =
|
||||
"package p;\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue