Checkstyle PutRoleRequestTests

This commit is contained in:
Albert Zaharovits 2019-01-21 18:35:44 +02:00
parent 2c02b298d3
commit 5843aba8bd
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class PutRoleRequestTests extends ESTestCase {
final PutRoleRequest copy = new PutRoleRequest();
final NamedWriteableRegistry registry = new NamedWriteableRegistry(new XPackClientPlugin(Settings.EMPTY).getNamedWriteables());
final StreamInput in = new NamedWriteableAwareStreamInput(ByteBufferStreamInput.wrap(BytesReference.toBytes(out.bytes())), registry);
StreamInput in = new NamedWriteableAwareStreamInput(ByteBufferStreamInput.wrap(BytesReference.toBytes(out.bytes())), registry);
in.setVersion(version);
copy.readFrom(in);