From e19e9757d408bc256df7942884c124abbf1620bd Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 16 Jun 2022 17:28:19 +0200 Subject: [PATCH] Polishing --- .../json/MappingJackson2HttpMessageConverterTests.java | 2 +- .../method/annotation/ResponseEntityResultHandlerTests.java | 4 ++-- .../annotation/RequestResponseBodyMethodProcessorTests.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java b/spring-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java index b06544ac239..da5dcd4281d 100644 --- a/spring-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java +++ b/spring-web/src/test/java/org/springframework/http/converter/json/MappingJackson2HttpMessageConverterTests.java @@ -62,7 +62,7 @@ import static org.mockito.Mockito.verify; */ public class MappingJackson2HttpMessageConverterTests { - protected static final String NEWLINE_SYSTEM_PROPERTY = System.getProperty("line.separator"); + protected static final String NEWLINE_SYSTEM_PROPERTY = System.lineSeparator(); private final MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java index 00998c0dd26..42161e7e0cf 100644 --- a/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java +++ b/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandlerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,7 +80,7 @@ import static org.springframework.web.testfixture.method.ResolvableMethod.on; */ public class ResponseEntityResultHandlerTests { - private static final String NEWLINE_SYSTEM_PROPERTY = System.getProperty("line.separator"); + private static final String NEWLINE_SYSTEM_PROPERTY = System.lineSeparator(); private ResponseEntityResultHandler resultHandler; diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java index 75d1217408a..b5f128d64ad 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestResponseBodyMethodProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2021 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException @SuppressWarnings("unused") public class RequestResponseBodyMethodProcessorTests { - protected static final String NEWLINE_SYSTEM_PROPERTY = System.getProperty("line.separator"); + protected static final String NEWLINE_SYSTEM_PROPERTY = System.lineSeparator(); private ModelAndViewContainer container;