Skip to content

Commit a09ef3c

Browse files
committed
Fix spotbugs warning which is a real bug.
1 parent accfda7 commit a09ef3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ private static synchronized String getSynchronously() {
4949
LOG.debug("{} = {} (conf)", HADOOP_SECURITY_SASL_MECHANISM_KEY, confValue);
5050

5151
// conf has a higher precedence than conf
52-
mechanism = confValue != null ? envValue
53-
: envValue != null ? confValue
52+
mechanism = confValue != null ? confValue
53+
: envValue != null ? envValue
5454
: HADOOP_SECURITY_SASL_MECHANISM_DEFAULT;
5555
LOG.debug("SASL_MECHANISM = {} (effective)", mechanism);
5656
return mechanism;

0 commit comments

Comments
 (0)