< prev index next >

src/java.base/share/classes/java/io/ObjectInputStream.java

Print this page

        

*** 1261,1271 **** * override security-sensitive non-final methods. Returns true if subclass * is "safe", false otherwise. */ private static boolean auditSubclass(final Class<?> subcl) { Boolean result = AccessController.doPrivileged( ! new PrivilegedAction<Boolean>() { public Boolean run() { for (Class<?> cl = subcl; cl != ObjectInputStream.class; cl = cl.getSuperclass()) { --- 1261,1271 ---- * override security-sensitive non-final methods. Returns true if subclass * is "safe", false otherwise. */ private static boolean auditSubclass(final Class<?> subcl) { Boolean result = AccessController.doPrivileged( ! new PrivilegedAction<>() { public Boolean run() { for (Class<?> cl = subcl; cl != ObjectInputStream.class; cl = cl.getSuperclass()) {
*** 2253,2263 **** */ void doCallbacks() throws InvalidObjectException { try { while (list != null) { AccessController.doPrivileged( ! new PrivilegedExceptionAction<Void>() { public Void run() throws InvalidObjectException { list.obj.validateObject(); return null; } --- 2253,2263 ---- */ void doCallbacks() throws InvalidObjectException { try { while (list != null) { AccessController.doPrivileged( ! new PrivilegedExceptionAction<>() { public Void run() throws InvalidObjectException { list.obj.validateObject(); return null; }
< prev index next >