浏览代码

YARN-5833. Addendum patch to fix JDK7 compile issue.

Subru Krishnan 8 年之前
父节点
当前提交
6685a0a064

+ 1 - 1
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfigurationFieldsBase.java

@@ -752,7 +752,7 @@ public abstract class TestConfigurationFieldsBase {
           // Check only for numerical values.
           if (StringUtils.isNumeric(ent.getValue())) {
             String crtValue =
-                filteredValues.putIfAbsent(ent.getValue(), ent.getKey());
+                filteredValues.put(ent.getValue(), ent.getKey());
             assertTrue("Parameters " + ent.getKey() + " and " + crtValue +
                 " are using the same default value!", crtValue == null);
           }