Skip to content

Commit e19e975

Browse files
committed
Polishing
1 parent 2473e95 commit e19e975

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

spring-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
*/
6363
public class MappingJackson2HttpMessageConverterTests {
6464

65-
protected static final String NEWLINE_SYSTEM_PROPERTY = System.getProperty("line.separator");
65+
protected static final String NEWLINE_SYSTEM_PROPERTY = System.lineSeparator();
6666

6767
private final MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
6868

spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -80,7 +80,7 @@
8080
*/
8181
public class ResponseEntityResultHandlerTests {
8282

83-
private static final String NEWLINE_SYSTEM_PROPERTY = System.getProperty("line.separator");
83+
private static final String NEWLINE_SYSTEM_PROPERTY = System.lineSeparator();
8484

8585

8686
private ResponseEntityResultHandler resultHandler;

spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -87,7 +87,7 @@
8787
@SuppressWarnings("unused")
8888
public class RequestResponseBodyMethodProcessorTests {
8989

90-
protected static final String NEWLINE_SYSTEM_PROPERTY = System.getProperty("line.separator");
90+
protected static final String NEWLINE_SYSTEM_PROPERTY = System.lineSeparator();
9191

9292

9393
private ModelAndViewContainer container;

0 commit comments

Comments
 (0)