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:
committed by
Ilya Kirillov
parent
c14affd6cd
commit
3a576ce14f
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user