You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2005/01/21 16:11:53 UTC

cvs commit: ant/src/main/org/apache/tools/ant/util/optional NoExitSecurityManager.java

peterreilly    2005/01/21 07:11:53

  Modified:    src/main/org/apache/tools/ant/util/optional
                        NoExitSecurityManager.java
  Log:
  javadoc
  
  Revision  Changes    Path
  1.8       +11 -1     ant/src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java
  
  Index: NoExitSecurityManager.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- NoExitSecurityManager.java	9 Mar 2004 16:48:54 -0000	1.7
  +++ NoExitSecurityManager.java	21 Jan 2005 15:11:53 -0000	1.8
  @@ -1,5 +1,5 @@
   /*
  - * Copyright  2001-2002,2004 The Apache Software Foundation
  + * Copyright  2001-2002,2004-2005 The Apache Software Foundation
    *
    *  Licensed under the Apache License, Version 2.0 (the "License");
    *  you may not use this file except in compliance with the License.
  @@ -29,10 +29,20 @@
    */
   public class NoExitSecurityManager extends SecurityManager {
   
  +    /**
  +     * Override SecurityManager#checkExit.
  +     * This throws an ExitException(status) exception.
  +     * @param status the exit status
  +     */
       public void checkExit(int status) {
           throw new ExitException(status);
       }
   
  +    /**
  +     * Override SecurityManager#checkPermission.
  +     * This does nothing.
  +     * @param perm the requested permission.
  +     */
       public void checkPermission(Permission perm) {
           // no permission here
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org