File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -514,6 +514,7 @@ public static Text buildTokenService(URI uri) {
514514 * @param action action.
515515 * @param <T> generic type T.
516516 * @return generic type T.
517+ * @deprecated Use {@link #callAsLoginUserOrFatalNoException()} instead
517518 */
518519 @ Deprecated
519520 public static <T > T doAsLoginUserOrFatal (PrivilegedAction <T > action ) {
@@ -596,6 +597,7 @@ public static <T> T callAsLoginUser(Callable<T> action)
596597 * @param <T> Generics Type T.
597598 * @return the result of the action
598599 * @throws IOException in the event of error
600+ * @deprecated Use {@link #callAsLoginUser()} instead
599601 */
600602 @ Deprecated
601603 public static <T > T doAsLoginUser (PrivilegedExceptionAction <T > action )
@@ -629,6 +631,7 @@ public static <T> T callAsCurrentUser(Callable<T> action)
629631 * @param <T> generic type T.
630632 * @return the result of the action
631633 * @throws IOException in the event of error
634+ * @deprecated Use {@link #callAsCurrentUser()} instead
632635 */
633636 @ Deprecated
634637 public static <T > T doAsCurrentUser (PrivilegedExceptionAction <T > action )
Original file line number Diff line number Diff line change @@ -2006,6 +2006,7 @@ public <T> T callAsNoException(Callable<T> action) {
20062006 * @param <T> the return type of the run method
20072007 * @param action the method to execute
20082008 * @return the value from the run method
2009+ * @deprecated Use {@link #callAs()} or {@link #callAsNoException()} instead.
20092010 */
20102011 @ InterfaceAudience .Public
20112012 @ InterfaceStability .Evolving
@@ -2026,6 +2027,7 @@ public <T> T doAs(PrivilegedAction<T> action) {
20262027 * @throws RuntimeException if the action throws a RuntimeException
20272028 * @throws InterruptedException if the action throws an InterruptedException
20282029 * @throws UndeclaredThrowableException if the action throws something else
2030+ * @deprecated Use {@link #callAs()} instead.
20292031 */
20302032 @ InterfaceAudience .Public
20312033 @ InterfaceStability .Evolving
You can’t perform that action at this time.
0 commit comments