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

This commit is contained in:
Subru Krishnan 2016-11-08 16:54:19 -08:00
parent 4f25fd975e
commit 6685a0a064
1 changed files with 1 additions and 1 deletions

View File

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