Skip to content

Commit cb7ae4d

Browse files
committed
Tighten up this implementation
1 parent 7ff8e45 commit cb7ae4d

File tree

1 file changed

+2
-1
lines changed
  • modules/ingest-common/src/main/java/org/elasticsearch/ingest/common

1 file changed

+2
-1
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/CefParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
package org.elasticsearch.ingest.common;
1010

11+
import org.elasticsearch.common.Strings;
1112
import org.elasticsearch.common.network.NetworkAddress;
1213
import org.elasticsearch.common.time.DateFormatters;
1314
import org.elasticsearch.core.Nullable;
@@ -508,7 +509,7 @@ private static String insertMACSeparators(String v) {
508509
}
509510

510511
private static void removeEmptyValue(Map<String, String> map) {
511-
map.entrySet().removeIf(entry -> Objects.isNull(entry.getValue()) || entry.getValue().isEmpty());
512+
map.values().removeIf(Strings::isEmpty);
512513
}
513514

514515
private static String convertArrayLikeKey(String key) {

0 commit comments

Comments
 (0)