Code example for Permission

Methods: getActions

0
 
        public void checkPermission(Permission perm) { 
            // only check if it's a FilePermission because Locale checks 
            // for a PropertyPermission with action"read" to get system props. 
            if (perm instanceof FilePermission 
                    && perm.getActions().equals(forbidenPermissionAction)) { 
                throw new SecurityException(); 
            } 
        } 
    }; 
 
    /** 
     * @tests java.util.zip.ZipFile#ZipFile(java.io.File) 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "setUp procedure checks this type of constructor.", 
        method = "ZipFile", 
        args = {java.io.File.class}
    ) 
Connect your IDE to all the code out there  Get Codota for Java