Skip to content

Commit 52c7078

Browse files
committed
[BAEL-2397] Corrected formatting
1 parent 34d42cc commit 52c7078

4 files changed

Lines changed: 83 additions & 85 deletions

File tree

Lines changed: 58 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,66 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
<modelVersion>4.0.0</modelVersion>
6-
<groupId>com.baeldung</groupId>
7-
<artifactId>core-java-14</artifactId>
8-
<version>1.0.0-SNAPSHOT</version>
9-
<name>core-java-14</name>
10-
<packaging>jar</packaging>
11-
<url>http://maven.apache.org</url>
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<artifactId>core-java-14</artifactId>
7+
<name>core-java-14</name>
8+
<packaging>jar</packaging>
9+
<url>http://maven.apache.org</url>
1210

13-
<parent>
14-
<groupId>com.baeldung</groupId>
15-
<artifactId>parent-modules</artifactId>
16-
<version>1.0.0-SNAPSHOT</version>
17-
<relativePath>../../</relativePath>
18-
</parent>
19-
<dependencies>
20-
<dependency>
21-
<groupId>org.assertj</groupId>
22-
<artifactId>assertj-core</artifactId>
23-
<version>${assertj.version}</version>
24-
<scope>test</scope>
25-
</dependency>
26-
<dependency>
27-
<groupId>org.junit.jupiter</groupId>
28-
<artifactId>junit-jupiter-engine</artifactId>
29-
<version>${junit-jupiter.version}</version>
30-
<scope>test</scope>
31-
</dependency>
32-
<dependency>
33-
<groupId>org.junit.jupiter</groupId>
34-
<artifactId>junit-jupiter-api</artifactId>
35-
<version>${junit-jupiter.version}</version>
36-
<scope>test</scope>
37-
</dependency>
38-
</dependencies>
39-
<build>
40-
<plugins>
41-
<plugin>
42-
<groupId>org.apache.maven.plugins</groupId>
43-
<artifactId>maven-compiler-plugin</artifactId>
44-
<version>${maven-compiler-plugin.version}</version>
45-
<configuration>
46-
<release>${maven.compiler.release}</release>
47-
<compilerArgs>--enable-preview</compilerArgs>
48-
</configuration>
49-
</plugin>
50-
<plugin>
51-
<groupId>org.apache.maven.plugins</groupId>
52-
<artifactId>maven-surefire-plugin</artifactId>
53-
<version>${surefire.plugin.version}</version>
54-
<configuration>
55-
<argLine>--enable-preview</argLine>
56-
</configuration>
57-
</plugin>
58-
</plugins>
59-
</build>
11+
<parent>
12+
<groupId>com.baeldung</groupId>
13+
<artifactId>parent-modules</artifactId>
14+
<version>1.0.0-SNAPSHOT</version>
15+
<relativePath>../../</relativePath>
16+
</parent>
17+
<dependencies>
18+
<dependency>
19+
<groupId>org.assertj</groupId>
20+
<artifactId>assertj-core</artifactId>
21+
<version>${assertj.version}</version>
22+
<scope>test</scope>
23+
</dependency>
24+
<dependency>
25+
<groupId>org.junit.jupiter</groupId>
26+
<artifactId>junit-jupiter-engine</artifactId>
27+
<version>${junit-jupiter.version}</version>
28+
<scope>test</scope>
29+
</dependency>
30+
<dependency>
31+
<groupId>org.junit.jupiter</groupId>
32+
<artifactId>junit-jupiter-api</artifactId>
33+
<version>${junit-jupiter.version}</version>
34+
<scope>test</scope>
35+
</dependency>
36+
</dependencies>
37+
<build>
38+
<plugins>
39+
<plugin>
40+
<groupId>org.apache.maven.plugins</groupId>
41+
<artifactId>maven-compiler-plugin</artifactId>
42+
<version>${maven-compiler-plugin.version}</version>
43+
<configuration>
44+
<release>${maven.compiler.release}</release>
45+
<compilerArgs>--enable-preview</compilerArgs>
46+
</configuration>
47+
</plugin>
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-surefire-plugin</artifactId>
51+
<version>${surefire.plugin.version}</version>
52+
<configuration>
53+
<argLine>--enable-preview</argLine>
54+
</configuration>
55+
</plugin>
56+
</plugins>
57+
</build>
6058

61-
<properties>
62-
<maven.compiler.release>14</maven.compiler.release>
63-
<assertj.version>3.6.1</assertj.version>
59+
<properties>
60+
<maven.compiler.release>14</maven.compiler.release>
61+
<assertj.version>3.6.1</assertj.version>
6462
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
6563
<surefire.plugin.version>3.0.0-M3</surefire.plugin.version>
66-
</properties>
64+
</properties>
6765

6866
</project>

core-java-modules/core-java-14/src/main/java/com/baeldung/java14/textblocks/TextBlocks13.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,44 @@
33
public class TextBlocks13 {
44
public String getBlockOfHtml() {
55
return """
6-
<html>
6+
<html>
77
8-
<body>
9-
<p>example text</p>
10-
</body>
11-
</html>""";
8+
<body>
9+
<p>example text</p>
10+
</body>
11+
</html>""";
1212
}
1313

1414
public String getNonStandardIndent() {
1515
return """
16-
Indent
17-
""";
16+
Indent
17+
""";
1818
}
1919

2020
public String getQuery() {
2121
return """
22-
select "id", "user"
23-
from "table"
24-
""";
22+
select "id", "user"
23+
from "table"
24+
""";
2525
}
2626

2727
public String getTextWithCarriageReturns() {
2828
return """
29-
separated with\r
30-
carriage returns""";
29+
separated with\r
30+
carriage returns""";
3131
}
3232

3333
public String getTextWithEscapes() {
3434
return """
35-
fun with\n
36-
whitespace\t\r
37-
and other escapes \"""
38-
""";
35+
fun with\n
36+
whitespace\t\r
37+
and other escapes \"""
38+
""";
3939
}
4040

4141
public String getFormattedText(String parameter) {
4242
return """
43-
Some parameter: %s
44-
""".formatted(parameter);
43+
Some parameter: %s
44+
""".formatted(parameter);
4545
}
4646
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
package com.baeldung.java14.textblocks;
22

33
public class TextBlocks14 {
4-
public String getIgnoredNewLines() {
5-
return """
4+
public String getIgnoredNewLines() {
5+
return """
66
This is a long test which looks to \
77
have a newline but actually does not""";
8-
}
8+
}
99

10-
public String getEscapedSpaces() {
11-
return """
10+
public String getEscapedSpaces() {
11+
return """
1212
line 1
1313
line 2 \s
1414
""";
15-
}
15+
}
1616
}

core-java-modules/core-java-14/src/main/java/com/baeldung/serial/MySerialClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/**
1212
* Class showcasing the usage of the Java 14 @Serial annotation.
13-
*
13+
*
1414
* @author Donato Rimenti
1515
*/
1616
public class MySerialClass implements Serializable {

0 commit comments

Comments
 (0)