Skip to content

Commit

Permalink
#12 package refactoring; classess renamed according to #11; documenta…
Browse files Browse the repository at this point in the history
…tion dev
  • Loading branch information
kwart committed Aug 24, 2014
1 parent 3696e80 commit 81cf12d
Show file tree
Hide file tree
Showing 22 changed files with 1,307 additions and 1,106 deletions.
Expand Up @@ -24,7 +24,7 @@
*
* @author Ondrej Lukas
*/
public class ProgradePolicyDebugger {
public class ProGradePolicyDebugger {

/**
* Method for printing debug information to standard output. Method adds "Policy: " before message for printing.
Expand Down
Expand Up @@ -28,7 +28,7 @@
*
* @author Josef Cacek
*/
public class SecurityActions {
class SecurityActions {

/**
* Returns a system property value using the specified <code>key</code>.
Expand Down Expand Up @@ -68,22 +68,4 @@ public Policy run() {
return Policy.getPolicy();
}
}

/**
* Installs given policy object.
*/
static void setPolicy(final Policy policy) {
final SecurityManager sm = System.getSecurityManager();

if (sm != null) {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
public Void run() {
Policy.setPolicy(policy);
return null;
}
});
} else {
Policy.setPolicy(policy);
}
}
}

0 comments on commit 81cf12d

Please sign in to comment.