Skip to content

Commit

Permalink
Collection.emptySet()
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Gross cogross committed Feb 26, 2024
1 parent cef4556 commit 280403a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public static void setCompressionTableDisallowList(Configuration conf, Set<Strin
protected static Set<String> getCompressionTableDisallowList(Configuration conf) {
String tableListString = conf.get(COMPRESSION_DISALLOWLIST);
if (tableListString == null) {
return new HashSet<>();
return Collections.emptySet();
} else {
String[] tables = StringUtils.split(tableListString, ',');
return new HashSet<>(Arrays.asList(tables));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ public JsonObjectFlattener newFlattener() {
} else if (null != this.getFieldAllowlist()) {
allowlistFields = this.getFieldAllowlist();
} else {
allowlistFields = new HashSet<>();
allowlistFields = Collections.emptySet();
}

if (null != this.getFieldDisallowlist()) {
disallowlistFields = this.getFieldDisallowlist();
} else {
disallowlistFields = new HashSet<>();
disallowlistFields = Collections.emptySet();
}

return new JsonIngestFlattener.Builder().jsonDataTypeHelper(this).mapKeyAllowlist(allowlistFields).mapKeyDisallowlist(disallowlistFields)
Expand Down

0 comments on commit 280403a

Please sign in to comment.