Skip to content

Commit cde11da

Browse files
committed
Prefer Map.of when it's a one-liner
1 parent 782406f commit cde11da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/CefProcessorTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public void testMalformedExtensionEscape() {
394394
entry("observer", Map.of("product", "Web Gateway", "vendor", "FooBar", "version", "1.2.3.45.67")),
395395
entry("@timestamp", ZonedDateTime.parse("2018-09-07T14:50:39Z")),
396396
entry("destination", Map.of("ip", "1.1.1.1", "domain", "foo.example.com")),
397-
entry("source", Map.ofEntries(entry("ip", "2.2.2.2"), entry("user", Map.of("name", "redacted")))),
397+
entry("source", Map.of("ip", "2.2.2.2", "user", Map.of("name", "redacted"))),
398398
entry("http", Map.of("request", Map.of("method", "POST"))),
399399
entry("url", Map.of("original", "'https://foo.example.com/bar/bingo/1'")),
400400
entry("user_agent", Map.of("original", "'Foo-Bar/2018.1.7; =Email:[email protected]; Guid:test='")),

0 commit comments

Comments
 (0)