From 5843aba8bdcf367d158570e1c96f8fa291ad1c37 Mon Sep 17 00:00:00 2001 From: Albert Zaharovits Date: Mon, 21 Jan 2019 18:35:44 +0200 Subject: [PATCH] Checkstyle PutRoleRequestTests --- .../xpack/core/security/action/role/PutRoleRequestTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/action/role/PutRoleRequestTests.java b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/action/role/PutRoleRequestTests.java index 56a9277c881..c15aa8b5e7f 100644 --- a/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/action/role/PutRoleRequestTests.java +++ b/x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/action/role/PutRoleRequestTests.java @@ -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);