< prev index next >

src/java.base/share/classes/sun/net/ResourceManager.java

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

*** 51,63 **** private static final int DEFAULT_MAX_SOCKETS = 25; private static final int maxSockets; private static final AtomicInteger numSockets; static { ! String prop = java.security.AccessController.doPrivileged( ! new GetPropertyAction("sun.net.maxDatagramSockets") ! ); int defmax = DEFAULT_MAX_SOCKETS; try { if (prop != null) { defmax = Integer.parseInt(prop); } --- 51,62 ---- private static final int DEFAULT_MAX_SOCKETS = 25; private static final int maxSockets; private static final AtomicInteger numSockets; static { ! String prop = ! GetPropertyAction.getProperty("sun.net.maxDatagramSockets"); int defmax = DEFAULT_MAX_SOCKETS; try { if (prop != null) { defmax = Integer.parseInt(prop); }
< prev index next >