From c6818fe15b87d1321b96a726e4a71eb02d6079fb Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 28 May 2019 14:53:24 +0200 Subject: [PATCH] Polishing See gh-23018 --- .../main/java/org/springframework/core/SortedProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/core/SortedProperties.java b/spring-core/src/main/java/org/springframework/core/SortedProperties.java index f1c2e8417b..1a979d39ed 100644 --- a/spring-core/src/main/java/org/springframework/core/SortedProperties.java +++ b/spring-core/src/main/java/org/springframework/core/SortedProperties.java @@ -49,7 +49,7 @@ import org.springframework.util.StringUtils; @SuppressWarnings("serial") class SortedProperties extends Properties { - static final String EOL = System.getProperty("line.separator"); + static final String EOL = System.lineSeparator(); private static final Comparator keyComparator = // (key1, key2) -> String.valueOf(key1).compareTo(String.valueOf(key2));