소스 검색

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

Subru Krishnan 8 년 전
부모
커밋
6685a0a064
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfigurationFieldsBase.java

+ 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);
           }