@@ -474,8 +474,8 @@ public static <T> T doAs(final Subject subject,
474
474
/**
475
475
* Perform privileged work as a particular {@code Subject}.
476
476
*
477
- * <p> This method ignores the {@code acc} argument, launches {@code action},
478
- * and binds {@code subject} to the period of its execution.
477
+ * <p> This method launches {@code action} and binds {@code subject} to
478
+ * the period of its execution.
479
479
*
480
480
* @param subject the {@code Subject} that the specified
481
481
* {@code action} will run as. This parameter
@@ -487,8 +487,7 @@ public static <T> T doAs(final Subject subject,
487
487
* @param action the code to be run as the specified
488
488
* {@code Subject}.
489
489
*
490
- * @param acc the {@code AccessControlContext} to be tied to the
491
- * specified <i>subject</i> and <i>action</i>.
490
+ * @param acc ignored
492
491
*
493
492
* @return the value returned by the PrivilegedAction's
494
493
* {@code run} method.
@@ -540,8 +539,8 @@ public static <T> T doAsPrivileged(final Subject subject,
540
539
/**
541
540
* Perform privileged work as a particular {@code Subject}.
542
541
*
543
- * <p> This method ignores the {@code acc} argument, launches {@code action},
544
- * and binds {@code subject} to the period of its execution.
542
+ * <p> This method launches {@code action} and binds {@code subject} to
543
+ * the period of its execution.
545
544
*
546
545
* @param subject the {@code Subject} that the specified
547
546
* {@code action} will run as. This parameter
@@ -553,8 +552,7 @@ public static <T> T doAsPrivileged(final Subject subject,
553
552
* @param action the code to be run as the specified
554
553
* {@code Subject}.
555
554
*
556
- * @param acc the {@code AccessControlContext} to be tied to the
557
- * specified <i>subject</i> and <i>action</i>.
555
+ * @param acc ignored
558
556
*
559
557
* @return the value returned by the
560
558
* PrivilegedExceptionAction's {@code run} method.
0 commit comments