Skip to content

Commit 5c4c705

Browse files
committed
checkstyle
1 parent 4b81a79 commit 5c4c705

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed

java-client/src/main/java/co/elastic/clients/elasticsearch/_helpers/bulk/BulkOperationRepeatable.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
package co.elastic.clients.elasticsearch._helpers.bulk;
221

322
import co.elastic.clients.elasticsearch.core.bulk.BulkOperation;
@@ -13,7 +32,7 @@ class BulkOperationRepeatable<Context> {
1332
private final Iterator<Long> retries;
1433
private Long retryTime;
1534

16-
public BulkOperationRepeatable(BulkOperation request, Context context, Iterator<Long> retries) {
35+
BulkOperationRepeatable(BulkOperation request, Context context, Iterator<Long> retries) {
1736
this.operation = request;
1837
this.context = context;
1938
this.retries = retries;

java-client/src/main/java/co/elastic/clients/elasticsearch/_helpers/bulk/IngesterOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class IngesterOperation {
3838
private final BulkOperationRepeatable repeatableOp;
3939
private final long size;
4040

41-
public IngesterOperation(BulkOperationRepeatable repeatableOp, long size) {
41+
IngesterOperation(BulkOperationRepeatable repeatableOp, long size) {
4242
this.repeatableOp = repeatableOp;
4343
this.size = size;
4444
}

java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/bulk/BulkIngesterRetryPolicyTest.java

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
package co.elastic.clients.elasticsearch._helpers.bulk;
221

322
import co.elastic.clients.elasticsearch.ElasticsearchClient;
@@ -17,7 +36,6 @@
1736
import co.elastic.clients.transport.Endpoint;
1837
import co.elastic.clients.transport.TransportOptions;
1938
import org.jetbrains.annotations.Nullable;
20-
import org.junit.jupiter.api.BeforeAll;
2139
import org.junit.jupiter.api.BeforeEach;
2240
import org.junit.jupiter.api.Test;
2341

java-client/src/test/java/co/elastic/clients/elasticsearch/_helpers/bulk/BulkIngesterTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@ public void pipelineTest() {
447447
String createStr = JsonpUtils.toJsonString(create, mapper);
448448
assertEquals(json, createStr);
449449

450-
BulkOperation create1 = IngesterOperation.of(new BulkOperationRepeatable<>(create, null, null), mapper).repeatableOperation().getOperation();
450+
BulkOperation create1 = IngesterOperation.of(new BulkOperationRepeatable<>(create, null, null), mapper)
451+
.repeatableOperation().getOperation();
451452

452453
String create1Str = JsonpUtils.toJsonString(create1, mapper);
453454
assertEquals(json, create1Str);

0 commit comments

Comments
 (0)