YARN-10612. Fix findbugs issue introduced in YARN-10585. Contributed by Gergely Pollak

This commit is contained in:
Szilard Nemeth 2021-02-04 08:12:13 +01:00
parent 15a1f7adfc
commit c17414111b
1 changed files with 0 additions and 4 deletions

View File

@ -138,10 +138,6 @@ public class LegacyMappingRuleToJson {
* @return JSON Format of the provided mapping rules, null if no rules are set * @return JSON Format of the provided mapping rules, null if no rules are set
*/ */
public String convert() { public String convert() {
if (userGroupMappingRules == null && applicationNameMappingRules == null) {
return null;
}
//creating the basic JSON config structure //creating the basic JSON config structure
ObjectNode rootNode = objectMapper.createObjectNode(); ObjectNode rootNode = objectMapper.createObjectNode();
ArrayNode rulesNode = objectMapper.createArrayNode(); ArrayNode rulesNode = objectMapper.createArrayNode();