summaryrefslogtreecommitdiff
path: root/src/main/org/apache/tools/ant/types/Permissions.java
diff options
context:
space:
mode:
authorStefan Bodewig <bodewig@apache.org>2004-11-22 09:23:37 +0000
committerStefan Bodewig <bodewig@apache.org>2004-11-22 09:23:37 +0000
commitdb48fbb829447064857a6b918e78cdab0b0c89b1 (patch)
treed550f74be2bcab11673436061f35d6bf7faa0d2c /src/main/org/apache/tools/ant/types/Permissions.java
parentc7a1a59bcf2c7c4f70070200b1c4267269174a80 (diff)
downloadant-db48fbb829447064857a6b918e78cdab0b0c89b1.tar.gz
Various checkstyle violations
Submitted by: Larry Shatzer And some (untabify (point-min) (point-max)) on some files. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277063 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/main/org/apache/tools/ant/types/Permissions.java')
-rw-r--r--src/main/org/apache/tools/ant/types/Permissions.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/org/apache/tools/ant/types/Permissions.java b/src/main/org/apache/tools/ant/types/Permissions.java
index dc13fead4..9c47bb10b 100644
--- a/src/main/org/apache/tools/ant/types/Permissions.java
+++ b/src/main/org/apache/tools/ant/types/Permissions.java
@@ -87,7 +87,7 @@ public class Permissions {
* prevent your part from starting, as for instance changing classloaders may be prohibited.
* The classloader for the new situation is supposed to be present.
*/
- public void setSecurityManager() throws BuildException{
+ public void setSecurityManager() throws BuildException {
origSm = System.getSecurityManager();
init();
System.setSecurityManager(new MySM());
@@ -110,7 +110,7 @@ public class Permissions {
if (p.getClassName() == null) {
throw new BuildException("Granted permission " + p + " does not contain a class.");
} else {
- java.security.Permission perm = new UnresolvedPermission(p.getClassName(),p.getName(),p.getActions(),null);
+ java.security.Permission perm = new UnresolvedPermission(p.getClassName(), p.getName(), p.getActions(), null);
granted.add(perm);
}
}
@@ -160,7 +160,7 @@ public class Permissions {
* @param status The exit status requested.
*/
public void checkExit(int status) {
- java.security.Permission perm = new java.lang.RuntimePermission("exitVM",null);
+ java.security.Permission perm = new java.lang.RuntimePermission("exitVM", null);
try {
checkPermission(perm);
} catch (SecurityException e) {
@@ -203,7 +203,7 @@ public class Permissions {
*/
private void checkRevoked(java.security.Permission perm) {
for (Iterator i = revokedPermissions.listIterator(); i.hasNext();) {
- if (((Permissions.Permission)i.next()).matches(perm)) {
+ if (((Permissions.Permission) i.next()).matches(perm)) {
throw new SecurityException("Permission " + perm + " was revoked.");
}
}