src/share/classes/java/security/AllPermission.java

Print this page

        

@@ -60,13 +60,11 @@
     private static final long serialVersionUID = -2916474571451318075L;
 
     /**
      * Creates a new AllPermission object.
      */
-
-    public AllPermission()
-    {
+    public AllPermission() {
         super("<all permissions>");
     }
 
 
     /**

@@ -75,12 +73,11 @@
      * to instantiate new Permission objects.
      *
      * @param name ignored
      * @param actions ignored.
      */
-    public AllPermission(String name, String actions)
-    {
+    public AllPermission(String name, String actions) {
         this();
     }
 
     /**
      * Checks if the specified permission is "implied" by

@@ -118,12 +115,11 @@
     /**
      * Returns the canonical string representation of the actions.
      *
      * @return the actions.
      */
-    public String getActions()
-    {
+    public String getActions() {
         return "<all actions>";
     }
 
     /**
      * Returns a new PermissionCollection object for storing AllPermission

@@ -131,11 +127,10 @@
      * <p>
      *
      * @return a new PermissionCollection object suitable for
      * storing AllPermissions.
      */
-
     public PermissionCollection newPermissionCollection() {
         return new AllPermissionCollection();
     }
 
 }

@@ -155,12 +150,12 @@
  *
  * @serial include
  */
 
 final class AllPermissionCollection
-extends PermissionCollection
-implements java.io.Serializable
+    extends PermissionCollection
+    implements java.io.Serializable
 {
 
     // use serialVersionUID from JDK 1.2.2 for interoperability
     private static final long serialVersionUID = -4023755556366636806L;
 

@@ -186,12 +181,11 @@
      *
      * @exception SecurityException - if this AllPermissionCollection object
      *                                has been marked readonly
      */
 
-    public void add(Permission permission)
-    {
+    public void add(Permission permission) {
         if (! (permission instanceof AllPermission))
             throw new IllegalArgumentException("invalid permission: "+
                                                permission);
         if (isReadOnly())
             throw new SecurityException("attempt to add a Permission to a readonly PermissionCollection");

@@ -201,28 +195,26 @@
 
     /**
      * Check and see if this set of permissions implies the permissions
      * expressed in "permission".
      *
-     * @param p the Permission object to compare
+     * @param permission the Permission object to compare
      *
      * @return always returns true.
      */
 
-    public boolean implies(Permission permission)
-    {
+    public boolean implies(Permission permission) {
         return all_allowed; // No sync; staleness OK
     }
 
     /**
      * Returns an enumeration of all the AllPermission objects in the
      * container.
      *
      * @return an enumeration of all the AllPermission objects.
      */
-    public Enumeration<Permission> elements()
-    {
+    public Enumeration<Permission> elements() {
         return new Enumeration<Permission>() {
             private boolean hasMore = all_allowed;
 
             public boolean hasMoreElements() {
                 return hasMore;