Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
rjernst committed Oct 19, 2023
1 parent 9c840f5 commit 4e4c743
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4e4c743

Please sign in to comment.