diff --git a/server/src/test/java/org/elasticsearch/script/field/IPAddressTests.java b/server/src/test/java/org/elasticsearch/script/field/IPAddressTests.java index 3f4f0a9eda567..63e5f9f072e98 100644 --- a/server/src/test/java/org/elasticsearch/script/field/IPAddressTests.java +++ b/server/src/test/java/org/elasticsearch/script/field/IPAddressTests.java @@ -8,7 +8,6 @@ package org.elasticsearch.script.field; -import org.elasticsearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.common.io.stream.GenericNamedWriteable; import org.elasticsearch.common.io.stream.NamedWriteableRegistry; import org.elasticsearch.common.io.stream.NamedWriteableRegistry.Entry; @@ -41,7 +40,9 @@ public void testV6() { } public void testWriteable() throws IOException { - var registry = new NamedWriteableRegistry(List.of(new Entry(GenericNamedWriteable.class, IPAddress.NAMED_WRITEABLE_NAME, IPAddress::new))); + var registry = new NamedWriteableRegistry( + List.of(new Entry(GenericNamedWriteable.class, IPAddress.NAMED_WRITEABLE_NAME, IPAddress::new)) + ); var original = new IPAddress("192.168.1.1"); var generic = copyNamedWriteable(original, registry, GenericNamedWriteable.class); var copied = asInstanceOf(IPAddress.class, generic);