KT-21811 Convert string concatenation into multiline string (#2772)

New J2K: Convert string concatenation into multiline string

#KT-21811 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-11-28 19:14:48 +09:00
committed by Ilya Kirillov
parent c14affd6cd
commit 3a576ce14f
7 changed files with 36 additions and 6 deletions
@@ -1,2 +1,7 @@
@Deprecated("Ph'nglui mglw'nafh\n" + " Cthulhu R'lyeh wgah'nagl fhtagn.\n" + " 'In His House at R'lyeh\n" + " Dead Cthulhu waits dreaming,\n" + " yet He shall rise and His kingdom\n" + " shall cover the Earth.'")
@Deprecated("""Ph'nglui mglw'nafh
Cthulhu R'lyeh wgah'nagl fhtagn.
'In His House at R'lyeh
Dead Cthulhu waits dreaming,
yet He shall rise and His kingdom
shall cover the Earth.'""")
class TestDeprecatedInJavadocWithMultilineMessage
@@ -0,0 +1,5 @@
public class Test {
String s = "asdf\n" +
"nadfadsf\n" +
"asdfasdf";
}
@@ -0,0 +1,7 @@
class Test {
var s = """
asdf
nadfadsf
asdfasdf
""".trimIndent()
}