private ProtectionDomain getProtectionDomain(final Class<?> clazz) {
        final SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            return doPrivileged((PrivilegedAction<ProtectionDomain>) clazz::getProtectionDomain);
        } else {
            return clazz.getProtectionDomain();
        }
    }
private ProtectionDomain getProtectionDomain(final Class<?> clazz) {
        final SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            return doPrivileged((PrivilegedAction<ProtectionDomain>) clazz::getProtectionDomain);
        } else {
            return clazz.getProtectionDomain();
        }
    }
private ProtectionDomain getProtectionDomain ( final Class < ? > clazz ) { final SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { return doPrivileged ( ( PrivilegedAction < ProtectionDomain > ) clazz :: getProtectionDomain ) ; } else { return clazz . getProtectionDomain ( ) ; } }
without ProtectionDomain
without ProtectionDomain