[BAEL-2397] Corrected formatting
This commit is contained in:
parent
7d0a14d3d3
commit
4c1b542fd9
@ -3,9 +3,7 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.baeldung</groupId>
|
|
||||||
<artifactId>core-java-14</artifactId>
|
<artifactId>core-java-14</artifactId>
|
||||||
<version>1.0.0-SNAPSHOT</version>
|
|
||||||
<name>core-java-14</name>
|
<name>core-java-14</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
package com.baeldung.java14.textblocks;
|
package com.baeldung.java14.textblocks;
|
||||||
|
|
||||||
public class TextBlocks14 {
|
public class TextBlocks14 {
|
||||||
public String getIgnoredNewLines() {
|
public String getIgnoredNewLines() {
|
||||||
return """
|
return """
|
||||||
This is a long test which looks to \
|
This is a long test which looks to \
|
||||||
have a newline but actually does not""";
|
have a newline but actually does not""";
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEscapedSpaces() {
|
public String getEscapedSpaces() {
|
||||||
return """
|
return """
|
||||||
line 1
|
line 1
|
||||||
line 2 \s
|
line 2 \s
|
||||||
""";
|
""";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user