Skip to content

Commit c3be427

Browse files
committed
Enforce LF on VerifyApply fixtures to keep tests OS-agnostic
1 parent e1be3d5 commit c3be427

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Test resources that need a predictable eol
2+
apply*/src/main/java/simple/Simple.java eol=lf

spring-javaformat-maven/spring-javaformat-maven-plugin/src/test/java/io/spring/format/maven/VerifyApply.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*/
3131
public class VerifyApply {
3232

33-
private static final String LF = System.lineSeparator();
33+
private static final String LF = "\n";
3434

3535
private static final String JAVA_FILE = "src/main/java/simple/Simple.java";
3636

0 commit comments

Comments
 (0)