Skip to content

Commit 5106fa7

Browse files
authored
use the older spotless version (#5778)
2 parents 2d71a06 + 9267c92 commit 5106fa7

37 files changed

Lines changed: 145 additions & 145 deletions

File tree

core/http/client/src/main/java/org/eclipse/rdf4j/http/client/RDF4JProtocolSession.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public void getRepositoryList(TupleQueryResultHandler handler) throws IOExceptio
229229

230230
HttpRequest method = applyAdditionalHeaders(
231231
HttpRequests.get(Protocol.getRepositoriesLocation(serverURL)))
232-
.build();
232+
.build();
233233

234234
try {
235235
getTupleQueryResult(method, handler);
@@ -249,7 +249,7 @@ public String getServerProtocol() throws IOException, RepositoryException, Unaut
249249

250250
HttpRequest method = applyAdditionalHeaders(
251251
HttpRequests.get(Protocol.getProtocolLocation(serverURL)))
252-
.build();
252+
.build();
253253

254254
try (HttpResponse response = executeOK(method)) {
255255
return HttpUtils.toString(response);
@@ -324,7 +324,7 @@ public void createRepository(RepositoryConfig config) throws IOException, Reposi
324324
HttpRequest method = applyAdditionalHeaders(
325325
HttpRequests.put(baseURI)
326326
.body(HttpRequestBody.ofBytes(bytes, getPreferredRDFFormat().getDefaultMIMEType())))
327-
.build();
327+
.build();
328328

329329
try {
330330
executeNoContent(method);
@@ -355,7 +355,7 @@ public void updateRepository(RepositoryConfig config) throws IOException, Reposi
355355
HttpRequest method = applyAdditionalHeaders(
356356
HttpRequests.post(Protocol.getRepositoryConfigLocation(baseURI))
357357
.body(HttpRequestBody.ofBytes(bytes, getPreferredRDFFormat().getDefaultMIMEType())))
358-
.build();
358+
.build();
359359

360360
try {
361361
executeNoContent(method);
@@ -370,7 +370,7 @@ public void deleteRepository(String repositoryID) throws IOException, Repository
370370

371371
HttpRequest method = applyAdditionalHeaders(
372372
HttpRequests.delete(Protocol.getRepositoryLocation(serverURL, repositoryID)))
373-
.build();
373+
.build();
374374

375375
try {
376376
executeNoContent(method);
@@ -431,7 +431,7 @@ public void getNamespaces(TupleQueryResultHandler handler) throws IOException, T
431431

432432
HttpRequest method = applyAdditionalHeaders(
433433
HttpRequests.get(Protocol.getNamespacesLocation(getQueryURL())))
434-
.build();
434+
.build();
435435

436436
try {
437437
getTupleQueryResult(method, handler);
@@ -446,7 +446,7 @@ public String getNamespace(String prefix) throws IOException, RepositoryExceptio
446446

447447
HttpRequest method = applyAdditionalHeaders(
448448
HttpRequests.get(Protocol.getNamespacePrefixLocation(getQueryURL(), prefix)))
449-
.build();
449+
.build();
450450

451451
try (HttpResponse response = execute(method)) {
452452
int code = response.getStatusCode();
@@ -469,7 +469,7 @@ public void setNamespacePrefix(String prefix, String name)
469469
HttpRequest method = applyAdditionalHeaders(
470470
HttpRequests.put(Protocol.getNamespacePrefixLocation(getQueryURL(), prefix))
471471
.body(HttpRequestBody.ofString(name, "text/plain", StandardCharsets.UTF_8)))
472-
.build();
472+
.build();
473473

474474
try {
475475
executeNoContent(method);
@@ -485,7 +485,7 @@ public void removeNamespacePrefix(String prefix) throws IOException, RepositoryE
485485

486486
HttpRequest method = applyAdditionalHeaders(
487487
HttpRequests.delete(Protocol.getNamespacePrefixLocation(getQueryURL(), prefix)))
488-
.build();
488+
.build();
489489

490490
try {
491491
executeNoContent(method);
@@ -501,7 +501,7 @@ public void clearNamespaces() throws IOException, RepositoryException, Unauthori
501501

502502
HttpRequest method = applyAdditionalHeaders(
503503
HttpRequests.delete(Protocol.getNamespacesLocation(getQueryURL())))
504-
.build();
504+
.build();
505505

506506
try {
507507
executeNoContent(method);
@@ -534,7 +534,7 @@ public void getContextIDs(TupleQueryResultHandler handler) throws IOException, T
534534

535535
HttpRequest method = applyAdditionalHeaders(
536536
HttpRequests.get(Protocol.getContextsLocation(getQueryURL())))
537-
.build();
537+
.build();
538538

539539
try {
540540
getTupleQueryResult(method, handler);
@@ -623,7 +623,7 @@ public synchronized void beginTransaction(TransactionSetting... transactionSetti
623623
HttpRequests.post(Protocol.getTransactionsLocation(getRepositoryURL()))
624624
.header("Content-Type", Protocol.FORM_MIME_TYPE + "; charset=utf-8")
625625
.body(HttpRequestBody.ofFormData(params)))
626-
.build();
626+
.build();
627627

628628
try (HttpResponse response = execute(method)) {
629629
int code = response.getStatusCode();
@@ -695,7 +695,7 @@ public synchronized void rollbackTransaction() throws RDF4JException, IOExceptio
695695
String requestURL = transactionURL;
696696
HttpRequest method = applyAdditionalHeaders(
697697
HttpRequests.delete(requestURL))
698-
.build();
698+
.build();
699699

700700
try (HttpResponse response = execute(method)) {
701701
int code = response.getStatusCode();
@@ -784,7 +784,7 @@ public void sendTransaction(final Iterable<? extends TransactionOperation> txn)
784784
HttpRequest method = applyAdditionalHeaders(
785785
HttpRequests.post(Protocol.getStatementsLocation(getQueryURL()))
786786
.body(HttpRequestBody.ofBytes(bytes, Protocol.TXN_MIME_TYPE)))
787-
.build();
787+
.build();
788788

789789
try {
790790
executeNoContent(method);

core/model/src/test/java/org/eclipse/rdf4j/model/impl/DynamicModelTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void exactNamedContextGetStatementsIteratorDoesNotSeeLaterAdditionWithoutUpgrade
275275
assertThat(iterator.hasNext()).isFalse();
276276
assertThat(model
277277
.getStatements(subject, predicate, valueFactory.createLiteral("object"), namedContext))
278-
.containsExactly(statement);
278+
.containsExactly(statement);
279279
assertThat(model.getUpgradedModel()).isNull();
280280
}
281281

core/queryalgebra/evaluation/src/main/java/org/eclipse/rdf4j/query/algebra/evaluation/impl/DefaultEvaluationStrategy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ public Value evaluate(ValueExpr expr, BindingSet bindings)
10321032
return precompile(expr,
10331033
new QueryEvaluationContext.Minimal(DefaultEvaluationStrategy.this.sharedValueOfNow, dataset,
10341034
tripleSource.getComparator()))
1035-
.evaluate(bindings);
1035+
.evaluate(bindings);
10361036
}
10371037

10381038
protected QueryValueEvaluationStep prepare(Var var, QueryEvaluationContext context)
@@ -1167,7 +1167,7 @@ public Value evaluate(Regex node, BindingSet bindings)
11671167
throws QueryEvaluationException {
11681168
return prepare(node,
11691169
new QueryEvaluationContext.Minimal(sharedValueOfNow, dataset, tripleSource.getComparator()))
1170-
.evaluate(bindings);
1170+
.evaluate(bindings);
11711171
}
11721172

11731173
/**

core/queryalgebra/evaluation/src/test/java/org/eclipse/rdf4j/query/algebra/evaluation/impl/evaluationsteps/OrderQueryEvaluationStepTelemetryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class OrderQueryEvaluationStepTelemetryTest {
3636
void retainsLegacyConstructorForBinaryCompatibility() throws Exception {
3737
assertThat(OrderQueryEvaluationStep.class
3838
.getConstructor(Comparator.class, long.class, boolean.class, QueryEvaluationStep.class, long.class))
39-
.isNotNull();
39+
.isNotNull();
4040
}
4141

4242
@Test

core/queryalgebra/evaluation/src/test/java/org/eclipse/rdf4j/query/algebra/evaluation/impl/evaluationsteps/ServiceQueryEvaluationStepTelemetryTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ void recordsLatencyQuantilesForSelectRequests() {
9797
FederatedService federatedService = mock(FederatedService.class);
9898
when(federatedService.select(eq(service), anySet(), any(BindingSet.class),
9999
eq(service.getBaseURI())))
100-
.thenAnswer(invocation -> {
101-
LockSupport.parkNanos(1_000_000L);
102-
return new CloseableIteratorIteration<>(List.of(singleBindingSet("s", "row")).iterator());
103-
});
100+
.thenAnswer(invocation -> {
101+
LockSupport.parkNanos(1_000_000L);
102+
return new CloseableIteratorIteration<>(List.of(singleBindingSet("s", "row")).iterator());
103+
});
104104

105105
FederatedServiceResolver resolver = mock(FederatedServiceResolver.class);
106106
when(resolver.getService("http://example.com/service")).thenReturn(federatedService);
@@ -139,7 +139,7 @@ void skipsRequestAndResponseByteAccountingWhenRuntimeTelemetryDisabled() {
139139
when(responseRow.toString()).thenThrow(new AssertionError("response byte accounting should be disabled"));
140140
when(federatedService.select(eq(service), anySet(), any(BindingSet.class),
141141
eq(service.getBaseURI())))
142-
.thenReturn(new CloseableIteratorIteration<>(List.of(responseRow).iterator()));
142+
.thenReturn(new CloseableIteratorIteration<>(List.of(responseRow).iterator()));
143143

144144
FederatedServiceResolver resolver = mock(FederatedServiceResolver.class);
145145
when(resolver.getService("http://example.com/service")).thenReturn(federatedService);

core/queryalgebra/model/src/test/java/org/eclipse/rdf4j/query/algebra/helpers/QueryModelTreeToGenericPlanNodeTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public void doesNotAnnotateConnectedJoinWhenSharedVarIsAlreadyGuaranteedBound()
238238
assertThat(outerPlan.getStringMetricActual(TelemetryMetricNames.JOIN_TYPE)).isNull();
239239
assertThat(findFirstPlan(outerPlan.getPlans().get(1),
240240
node -> node.getStringMetricActual(TelemetryMetricNames.JOIN_TYPE) != null))
241-
.isNull();
241+
.isNull();
242242
}
243243

244244
@Test

core/queryresultio/text/src/main/java/org/eclipse/rdf4j/query/resultio/text/csv/SPARQLResultsCSVParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public void parse(InputStream in) throws QueryResultParseException, TupleQueryRe
4343

4444
List<BindingSet> bindingSets = new CsvToBeanBuilder<BindingSet>(
4545
new InputStreamReader(in, StandardCharsets.UTF_8)).withType(BindingSet.class)
46-
.withMappingStrategy(strategy)
47-
.build()
48-
.parse();
46+
.withMappingStrategy(strategy)
47+
.build()
48+
.parse();
4949
List<String> bindingNames = strategy.getBindingNames();
5050
handler.startQueryResult(bindingNames);
5151
for (BindingSet bs : bindingSets) {

core/rio/api/src/test/java/org/eclipse/rdf4j/rio/helpers/RDFParserHelperTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ public void tearDown() {
8282
public final void testCreateLiteralLabelNull() {
8383
assertThatThrownBy(
8484
() -> RDFParserHelper.createLiteral(null, null, null, parserConfig, errListener, valueFactory))
85-
.isInstanceOf(NullPointerException.class)
86-
.hasMessage("Cannot create a literal using a null label");
85+
.isInstanceOf(NullPointerException.class)
86+
.hasMessage("Cannot create a literal using a null label");
8787
}
8888

8989
/**
@@ -168,7 +168,7 @@ public final void testCreateLiteralLabelNoLanguageWithRDFLangStringWithVerify()
168168
assertTrue(parserConfig.get(BasicParserSettings.VERIFY_DATATYPE_VALUES));
169169
assertThatThrownBy(() -> RDFParserHelper.createLiteral(LABEL_TESTA, null, RDF.LANGSTRING, parserConfig,
170170
errListener, valueFactory))
171-
.isInstanceOf(RDFParseException.class);
171+
.isInstanceOf(RDFParseException.class);
172172
}
173173

174174
@Test
@@ -187,8 +187,8 @@ public final void testReportErrorStringFatalActive() {
187187
assertThatThrownBy(
188188
() -> RDFParserHelper.reportError(TEST_MESSAGE_FOR_FAILURE, BasicParserSettings.VERIFY_DATATYPE_VALUES,
189189
parserConfig, errListener))
190-
.isInstanceOf(RDFParseException.class)
191-
.hasMessage(TEST_MESSAGE_FOR_FAILURE);
190+
.isInstanceOf(RDFParseException.class)
191+
.hasMessage(TEST_MESSAGE_FOR_FAILURE);
192192
assertErrorListener(0, 1, 0);
193193
}
194194

@@ -227,8 +227,8 @@ public final void testReportErrorStringIntIntFatalActive() {
227227
() -> RDFParserHelper.reportError(TEST_MESSAGE_FOR_FAILURE, 1, 1,
228228
BasicParserSettings.VERIFY_DATATYPE_VALUES,
229229
parserConfig, errListener))
230-
.isInstanceOf(RDFParseException.class)
231-
.hasMessageContaining(TEST_MESSAGE_FOR_FAILURE);
230+
.isInstanceOf(RDFParseException.class)
231+
.hasMessageContaining(TEST_MESSAGE_FOR_FAILURE);
232232

233233
assertErrorListener(0, 1, 0);
234234
}

core/rio/datatypes/src/test/java/org/eclipse/rdf4j/rio/datatypes/AbstractDatatypeHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void testVerifyDatatypeNullValueUnrecognised() {
162162
public void testVerifyDatatypeUnrecognisedDatatypeUri() {
163163
assertThatThrownBy(
164164
() -> testHandler.verifyDatatype(getValueMatchingRecognisedDatatypeUri(), getUnrecognisedDatatypeUri()))
165-
.isInstanceOf(LiteralUtilException.class);
165+
.isInstanceOf(LiteralUtilException.class);
166166
}
167167

168168
/**
@@ -214,7 +214,7 @@ public void testNormalizeDatatypeNullValue() {
214214
public void testNormalizeDatatypeUnrecognisedDatatypeUri() {
215215
assertThatThrownBy(() -> testHandler.normalizeDatatype(getValueMatchingRecognisedDatatypeUri(),
216216
getUnrecognisedDatatypeUri(), vf))
217-
.isInstanceOf(LiteralUtilException.class);
217+
.isInstanceOf(LiteralUtilException.class);
218218
}
219219

220220
/**
@@ -226,7 +226,7 @@ public void testNormalizeDatatypeUnrecognisedDatatypeUri() {
226226
public void testNormalizeDatatypeInvalidValue() {
227227
assertThatThrownBy(() -> testHandler.normalizeDatatype(getValueNotMatchingRecognisedDatatypeUri(),
228228
getRecognisedDatatypeUri(), vf))
229-
.isInstanceOf(LiteralUtilException.class);
229+
.isInstanceOf(LiteralUtilException.class);
230230
}
231231

232232
/**

core/rio/nquads/src/test/java/org/eclipse/rdf4j/rio/nquads/AbstractNQuadsParserUnitTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public void testParseBasicLiteralDatatype() throws RDFHandlerException, IOExcept
282282
final ByteArrayInputStream bais = new ByteArrayInputStream(
283283
("<http://www.v/dat/4b2-21> " + "<http://www.w3.org/20/ica#dtend> "
284284
+ "\"2010\"^^<http://www.w3.org/2001/XMLSchema#integer> " + "<http://sin.siteserv.org/def/>.")
285-
.getBytes());
285+
.getBytes());
286286
final TestRDFHandler rdfHandler = new TestRDFHandler();
287287
parser.setRDFHandler(rdfHandler);
288288
parser.parse(bais, "http://test.base.uri");
@@ -491,7 +491,7 @@ public void testStatementWithInvalidLiteralContentAndIgnoreValidation()
491491
+ "<http://dbpedia.org/property/mandatofine> "
492492
+ "\"1380.0\"^^<http://www.w3.org/2001/XMLSchema#int> "
493493
+ "<http://it.wikipedia.org/wiki/Camillo_Benso,_conte_di_Cavour#absolute-line=20> .")
494-
.getBytes());
494+
.getBytes());
495495
parser.getParserConfig().set(BasicParserSettings.VERIFY_DATATYPE_VALUES, false);
496496
parser.getParserConfig().set(BasicParserSettings.FAIL_ON_UNKNOWN_DATATYPES, false);
497497
parser.parse(bais, "http://base-uri");
@@ -506,7 +506,7 @@ public void testStatementWithInvalidLiteralContentAndStrictValidation()
506506
+ "<http://dbpedia.org/property/mandatofine> "
507507
+ "\"1380.0\"^^<http://www.w3.org/2001/XMLSchema#int> "
508508
+ "<http://it.wikipedia.org/wiki/Camillo_Benso,_conte_di_Cavour#absolute-line=20> .")
509-
.getBytes());
509+
.getBytes());
510510
parser.getParserConfig().set(BasicParserSettings.VERIFY_DATATYPE_VALUES, true);
511511
parser.getParserConfig().set(BasicParserSettings.FAIL_ON_UNKNOWN_DATATYPES, true);
512512
try {
@@ -601,7 +601,7 @@ private void verifyStatementWithInvalidDatatype(boolean useDatatypeVerification)
601601
+ "<http://dbpedia.org/property/mandatofine> "
602602
+ "\"1380.0\"^^<http://dbpedia.org/invalid/datatype/second> "
603603
+ "<http://it.wikipedia.org/wiki/Camillo_Benso,_conte_di_Cavour#absolute-line=20> .")
604-
.getBytes());
604+
.getBytes());
605605
parser.parse(bais, "http://base-uri");
606606
rdfHandler.assertHandler(1);
607607
}

0 commit comments

Comments
 (0)