Skip to content

Commit 3314534

Browse files
committed
Add Javadoc links to deprecated methods in UGI and SecurityUtil
1 parent 6d89b7a commit 3314534

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)