mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 18:15:55 +00:00
[jdk13] Added support for printing text blocks (triple quoted strings) in text block form
This commit is contained in:
12 files changed
+146
-37
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// version 13:
|
||||
public class TextBlocks {
|
||||
private String example = """
|
||||
This should not be indented.\nline 2
|
||||
line 3
|
||||
""";
|
||||
|
||||
private String ex2 = """
|
||||
This should be though.
|
||||
""";
|
||||
|
||||
private String ex3 = "This is a simple\nstring";
|
||||
|
||||
private String ex4 = """
|
||||
""";
|
||||
|
||||
private String bizarroDent = """
|
||||
foo\n bar""" + "hey" + """
|
||||
weird!""";
|
||||
|
||||
private String stringFolding = "hmmm" + """
|
||||
line1
|
||||
line2""";
|
||||
}
|
||||
Reference in new issue
Block a user