< prev index next >

src/java.base/share/classes/sun/security/ssl/StatusResponseManager.java

Print this page
rev 14210 : 8154231: Simplify access to System properties from JDK code
Reviewed-by: rriggs

*** 71,82 **** int life = AccessController.doPrivileged( new GetIntegerAction("jdk.tls.stapling.cacheLifetime", DEFAULT_CACHE_LIFETIME)); cacheLifetime = life > 0 ? life : 0; ! String uriStr = AccessController.doPrivileged( ! new GetPropertyAction("jdk.tls.stapling.responderURI")); URI tmpURI; try { tmpURI = ((uriStr != null && !uriStr.isEmpty()) ? new URI(uriStr) : null); } catch (URISyntaxException urise) { --- 71,82 ---- int life = AccessController.doPrivileged( new GetIntegerAction("jdk.tls.stapling.cacheLifetime", DEFAULT_CACHE_LIFETIME)); cacheLifetime = life > 0 ? life : 0; ! String uriStr = ! GetPropertyAction.getProperty("jdk.tls.stapling.responderURI"); URI tmpURI; try { tmpURI = ((uriStr != null && !uriStr.isEmpty()) ? new URI(uriStr) : null); } catch (URISyntaxException urise) {
< prev index next >