From 9dd7184b6e81863ea745a8cbe27a51b2acc220aa Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Sat, 26 Aug 2017 05:24:28 +0900 Subject: [PATCH] Remove SystemPropertiesHandler.properties Closes gh-10080 --- .../springframework/boot/test/util/TestPropertyValues.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java b/spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java index 2c9ed9aabb..f86d9b60db 100644 --- a/spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java +++ b/spring-boot-test/src/main/java/org/springframework/boot/test/util/TestPropertyValues.java @@ -284,13 +284,10 @@ public final class TestPropertyValues { */ private class SystemPropertiesHandler implements Closeable { - private final Map properties; - private final Map previous; SystemPropertiesHandler() { - this.properties = new LinkedHashMap<>(TestPropertyValues.this.properties); - this.previous = apply(this.properties); + this.previous = apply(TestPropertyValues.this.properties); } private Map apply(Map properties) {