From 7ae82b070b15f13b4298809c6414a3f84c81a79c Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 19 Jun 2018 14:12:00 +0200 Subject: [PATCH] Stop calling Charset.availableCharsets() early This is no longer required as Spring Framework has been updated to invoke this method lazily as well. Closes gh-13423 --- .../boot/autoconfigure/BackgroundPreinitializer.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java index bdb648bd6e7..968dda42f42 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/BackgroundPreinitializer.java @@ -16,7 +16,6 @@ package org.springframework.boot.autoconfigure; -import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; @@ -173,7 +172,6 @@ public class BackgroundPreinitializer @Override public void run() { StandardCharsets.UTF_8.name(); - Charset.availableCharsets(); } }