aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features195
diff options
context:
space:
mode:
Diffstat (limited to 'tests/features195')
-rw-r--r--tests/features195/textblock/Code.java2
-rw-r--r--tests/features195/textblock/Code2.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/features195/textblock/Code.java b/tests/features195/textblock/Code.java
index 89df1e537..5dc430872 100644
--- a/tests/features195/textblock/Code.java
+++ b/tests/features195/textblock/Code.java
@@ -1,9 +1,9 @@
public class Code {
public static void main(String[] argv) {
+ // Caveat: Putting the closing '"""' on a separate line adds a line break and 'println' (not 'print'!) adds another.
System.out.println("""
this is a text
block
""");
}
}
-
diff --git a/tests/features195/textblock/Code2.java b/tests/features195/textblock/Code2.java
index f0b39e08b..7020b67a5 100644
--- a/tests/features195/textblock/Code2.java
+++ b/tests/features195/textblock/Code2.java
@@ -6,10 +6,10 @@ public class Code2 {
aspect X {
before(): execution(* Code2.main(..)) {
+ // Caveat: Putting the closing '"""' on a separate line adds a line break and 'println' (not 'print'!) adds another.
System.out.println("""
this is a text
block in advice
""");
}
}
-