Skip to content

Commit 4325f46

Browse files
author
Justin Brinegar
committed
review feedback from pan3793
1 parent e6e9bd2 commit 4325f46

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/util/subject/SubjectAdapter.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
package org.apache.hadoop.util.subject;
2020

21-
import org.slf4j.Logger;
22-
import org.slf4j.LoggerFactory;
23-
2421
import javax.security.auth.Subject;
2522

2623
/**
@@ -29,7 +26,6 @@
2926
* This class helps use the newer API if available, without raising the language level.
3027
*/
3128
public class SubjectAdapter {
32-
private static Logger log = LoggerFactory.getLogger(SubjectAdapter.class);
3329
private static final HiddenSubjectAdapter instance;
3430
static {
3531
int version = 0;
@@ -48,13 +44,4 @@ private SubjectAdapter() {}
4844
public static Subject getSubject() {
4945
return instance.getSubject();
5046
}
51-
52-
/**
53-
* This main method is included so that this is trivially tested using multiple JDKs outside the scope test sources
54-
* @param args ignored
55-
*/
56-
public static void main(String[] args) {
57-
final Subject theSubject = getSubject();
58-
log.info("Current subject is {}", theSubject);
59-
}
6047
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@
8888
import org.apache.hadoop.util.Shell;
8989
import org.apache.hadoop.util.StringUtils;
9090
import org.apache.hadoop.util.Time;
91-
9291
import org.apache.hadoop.util.subject.SubjectAdapter;
92+
9393
import org.slf4j.Logger;
9494
import org.slf4j.LoggerFactory;
9595

0 commit comments

Comments
 (0)