From 2cccd4c669904e75095e2ed3f2eac1e65d19f0f0 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Wed, 17 Oct 2018 09:17:02 -0400 Subject: [PATCH] LLREST: Wrap at 140 columns (#34489) Wraps a single line in a test to fit on 140 characters, removing the only checkstyle suppression for the clients directory. --- buildSrc/src/main/resources/checkstyle_suppressions.xml | 1 - .../client/HeapBufferedAsyncResponseConsumerTests.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/resources/checkstyle_suppressions.xml b/buildSrc/src/main/resources/checkstyle_suppressions.xml index 5edaf97b1a3..206c87740b2 100644 --- a/buildSrc/src/main/resources/checkstyle_suppressions.xml +++ b/buildSrc/src/main/resources/checkstyle_suppressions.xml @@ -46,7 +46,6 @@ - diff --git a/client/rest/src/test/java/org/elasticsearch/client/HeapBufferedAsyncResponseConsumerTests.java b/client/rest/src/test/java/org/elasticsearch/client/HeapBufferedAsyncResponseConsumerTests.java index fe82d5367e5..96a45d1d602 100644 --- a/client/rest/src/test/java/org/elasticsearch/client/HeapBufferedAsyncResponseConsumerTests.java +++ b/client/rest/src/test/java/org/elasticsearch/client/HeapBufferedAsyncResponseConsumerTests.java @@ -106,7 +106,8 @@ public class HeapBufferedAsyncResponseConsumerTests extends RestClientTestCase { IllegalAccessException, InvocationTargetException, InstantiationException { int bufferLimit = randomIntBetween(1, Integer.MAX_VALUE); //we use reflection to make sure that the class can be instantiated from the outside, and the constructor is public - Constructor constructor = HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory.class.getConstructor(Integer.TYPE); + Constructor constructor = + HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory.class.getConstructor(Integer.TYPE); assertEquals(Modifier.PUBLIC, constructor.getModifiers() & Modifier.PUBLIC); Object object = constructor.newInstance(bufferLimit); assertThat(object, instanceOf(HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory.class));