From 590c1c914be331821466c0f6c4cccd0d1ca6cd51 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 21 Jan 2005 15:11:53 +0000 Subject: [PATCH] javadoc git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277418 13f79535-47bb-0310-9956-ffa450edef68 --- .../ant/util/optional/NoExitSecurityManager.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java b/src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java index a835ac6fd..d59a95066 100644 --- a/src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java +++ b/src/main/org/apache/tools/ant/util/optional/NoExitSecurityManager.java @@ -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 @@ import org.apache.tools.ant.ExitException; */ 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 }