tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/naming JndiPermission.java
Date Mon, 10 Sep 2001 15:19:39 GMT
glenn       01/09/10 08:19:39

  Modified:    catalina/src/share/org/apache/naming JndiPermission.java
  Log:
  No need to override equals() method
  
  Revision  Changes    Path
  1.2       +7 -18     jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/JndiPermission.java
  
  Index: JndiPermission.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/JndiPermission.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JndiPermission.java	2001/06/22 20:06:00	1.1
  +++ JndiPermission.java	2001/09/10 15:19:39	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/JndiPermission.java,v
1.1 2001/06/22 20:06:00 glenn Exp $
  - * $Revision: 1.1 $
  - * $Date: 2001/06/22 20:06:00 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/naming/JndiPermission.java,v
1.2 2001/09/10 15:19:39 glenn Exp $
  + * $Revision: 1.2 $
  + * $Date: 2001/09/10 15:19:39 $
    *
    * ====================================================================
    *
  @@ -65,6 +65,7 @@
   package org.apache.naming;
   
   import java.security.BasicPermission;
  +import java.security.Permission;
   
   /**
    * Java SecurityManager Permission class for JNDI name based file resources
  @@ -79,7 +80,7 @@
    * </p>
    *
    * @author Glenn Nielsen
  - * @version $Revision: 1.1 $ $Date: 2001/06/22 20:06:00 $
  + * @version $Revision: 1.2 $ $Date: 2001/09/10 15:19:39 $
    */
   
   public final class JndiPermission extends BasicPermission {
  @@ -96,25 +97,13 @@
       }
   
       /**
  -     * Creates a new JndiPermission with no actions
  +     * Creates a new JndiPermission with actions
        *
        * @param String - JNDI resource path name
  +     * @param String - JNDI actions (none defined)
        */
       public JndiPermission(String name, String actions) {
           super(name,actions);
  -    }
  -
  -    // ---------------- Permission Class abstract public method implementations
  -
  -    public boolean equals(Object obj) {
  -        if( !(obj instanceof JndiPermission) )
  -            return false;
  -
  -        JndiPermission p = (JndiPermission)obj;
  -        if( !p.getName().equals(this.getName()) )
  -            return false;
  -
  -        return true;
       }
   
   }
  
  
  

Mime
View raw message