private static void checkAccess(Channel c) {
        SecurityManager sm = System.getSecurityManager();
        if (sm != null) {
            sm.checkPermission(
                new RuntimePermission("inheritedChannel")
            );
        }
    }
private static void checkAccess ( Channel c ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkPermission ( new RuntimePermission ( "inheritedChannel" ) ) ; } }
/*
If there's a SecurityManager then check for the appropriate
RuntimePermission.