Skip to content

Commit

Permalink
fix(java17): remove long-deprecated import that doesn't work with JRE…
Browse files Browse the repository at this point in the history
…17 (#1170) (#1171)

(cherry picked from commit 03c1ace)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
  • Loading branch information
mergify[bot] and mattgogerly committed Sep 18, 2023
1 parent ff50207 commit 0e30827
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -23,7 +23,6 @@ import org.springframework.boot.autoconfigure.groovy.template.GroovyTemplateAuto
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
import sun.net.InetAddressCachePolicy

import java.security.Security

Expand All @@ -47,7 +46,6 @@ class Main extends SpringBootServletInitializer {
* We often operate in an environment where we expect resolution of DNS names for remote dependencies to change
* frequently, so it's best to tell the JVM to avoid caching DNS results internally.
*/
InetAddressCachePolicy.cachePolicy = InetAddressCachePolicy.NEVER
Security.setProperty('networkaddress.cache.ttl', '0')
}

Expand Down

0 comments on commit 0e30827

Please sign in to comment.