src/share/classes/javax/crypto/CryptoPermission.java

Print this page

        

@@ -469,12 +469,12 @@
  * @see java.security.PermissionCollection
  *
  * @author Sharon Liu
  */
 final class CryptoPermissionCollection extends PermissionCollection
-implements Serializable {
-
+    implements Serializable
+{
     private static final long serialVersionUID = -511215555898802763L;
 
     private Vector<Permission> permissions;
 
     /**

@@ -491,12 +491,11 @@
      * @param permission the Permission object to add.
      *
      * @exception SecurityException - if this CryptoPermissionCollection
      * object has been marked <i>readOnly</i>.
      */
-    public void add(Permission permission)
-    {
+    public void add(Permission permission) {
         if (isReadOnly())
             throw new SecurityException("attempt to add a Permission " +
                                         "to a readonly PermissionCollection");
 
         if (!(permission instanceof CryptoPermission))

@@ -507,11 +506,11 @@
 
     /**
       * Check and see if this CryptoPermission object implies
       * the given Permission object.
      *
-     * @param p the Permission object to compare
+     * @param permission the Permission object to compare
      *
      * @return true if the given permission  is implied by this
      * CryptoPermissionCollection, false if not.
      */
     public boolean implies(Permission permission) {

@@ -536,10 +535,9 @@
      * in the container.
      *
      * @return an enumeration of all the CryptoPermission objects.
      */
 
-    public Enumeration<Permission> elements()
-    {
+    public Enumeration<Permission> elements() {
         return permissions.elements();
     }
 }