Skip to content

Commit 0999c06

Browse files
committed
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.
1 parent eb52774 commit 0999c06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildSrc/src/main/resources/checkstyle_suppressions.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747
<!-- Hopefully temporary suppression of LineLength on files that don't pass it. We should remove these when we the
4848
files start to pass. -->
49-
<suppress files="client[/\\]rest[/\\]src[/\\]test[/\\]java[/\\]org[/\\]elasticsearch[/\\]client[/\\]HeapBufferedAsyncResponseConsumerTests.java" checks="LineLength" />
5049
<suppress files="server[/\\]src[/\\]main[/\\]java[/\\]org[/\\]apache[/\\]lucene[/\\]search[/\\]vectorhighlight[/\\]CustomFieldQuery.java" checks="LineLength" />
5150
<suppress files="server[/\\]src[/\\]main[/\\]java[/\\]org[/\\]elasticsearch[/\\]action[/\\]Action.java" checks="LineLength" />
5251
<suppress files="server[/\\]src[/\\]main[/\\]java[/\\]org[/\\]elasticsearch[/\\]action[/\\]admin[/\\]cluster[/\\]health[/\\]ClusterHealthRequestBuilder.java" checks="LineLength" />

client/rest/src/test/java/org/elasticsearch/client/HeapBufferedAsyncResponseConsumerTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ public void testCanConfigureHeapBufferLimitFromOutsidePackage() throws ClassNotF
106106
IllegalAccessException, InvocationTargetException, InstantiationException {
107107
int bufferLimit = randomIntBetween(1, Integer.MAX_VALUE);
108108
//we use reflection to make sure that the class can be instantiated from the outside, and the constructor is public
109-
Constructor<?> constructor = HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory.class.getConstructor(Integer.TYPE);
109+
Constructor<?> constructor =
110+
HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory.class.getConstructor(Integer.TYPE);
110111
assertEquals(Modifier.PUBLIC, constructor.getModifiers() & Modifier.PUBLIC);
111112
Object object = constructor.newInstance(bufferLimit);
112113
assertThat(object, instanceOf(HttpAsyncResponseConsumerFactory.HeapBufferedResponseConsumerFactory.class));

0 commit comments

Comments
 (0)