final List policyFiles = new ArrayList(); try { policyFiles.add(defaultPolicy); policyFiles.addAll((List) AccessController .doPrivileged(new PrivilegedExceptionAction() {
final List policyFiles = new LinkedList(); try { policyFiles.add (new File (DEFAULT_POLICY).toURL()); policyFiles.add (new File (DEFAULT_USER_POLICY).toURL ());
    public void refresh() {        cs2pc.clear();        final List policyFiles = new ArrayList();        try {            policyFiles.add(defaultPolicy);            policyFiles.addAll((List) AccessController                    .doPrivileged(new PrivilegedExceptionAction() {                        public Object run() throws Exception {                            LinkedList l = new LinkedList();                            for (int i = 1;; i++) {                                String s = Security.getProperty("policy.file."                                        + i);                                debug("policy.file." + i + "=" + s);                                if (s == null) break;                                l.add(new URL(s));                            }                            String s = System                                    .getProperty("java.security.policy");                            debug("java.security.policy=" + s);                            if (s != null) l.add(new URL(s));                            return l;                        }                    }));        } catch (PrivilegedActionException pae) {            error(pae.getException());        }        for (Iterator it = policyFiles.iterator(); it.hasNext();) {            try {                URL url = (URL) it.next();                parse(url);            } catch (IOException ioe) {                error(ioe);            }        }    }