Skip to content

Commit 91bbd1e

Browse files
authored
apply formatting to develop (#5753)
* apply formatting * apply formatting
1 parent 634b7dc commit 91bbd1e

2 files changed

Lines changed: 15 additions & 15 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
@@ -228,7 +228,7 @@ public void getRepositoryList(TupleQueryResultHandler handler) throws IOExceptio
228228

229229
HttpRequest method = applyAdditionalHeaders(
230230
HttpRequests.get(Protocol.getRepositoriesLocation(serverURL)))
231-
.build();
231+
.build();
232232

233233
try {
234234
getTupleQueryResult(method, handler);
@@ -248,7 +248,7 @@ public String getServerProtocol() throws IOException, RepositoryException, Unaut
248248

249249
HttpRequest method = applyAdditionalHeaders(
250250
HttpRequests.get(Protocol.getProtocolLocation(serverURL)))
251-
.build();
251+
.build();
252252

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

328328
try {
329329
executeNoContent(method);
@@ -354,7 +354,7 @@ public void updateRepository(RepositoryConfig config) throws IOException, Reposi
354354
HttpRequest method = applyAdditionalHeaders(
355355
HttpRequests.post(Protocol.getRepositoryConfigLocation(baseURI))
356356
.body(HttpRequestBody.ofBytes(bytes, getPreferredRDFFormat().getDefaultMIMEType())))
357-
.build();
357+
.build();
358358

359359
try {
360360
executeNoContent(method);
@@ -369,7 +369,7 @@ public void deleteRepository(String repositoryID) throws IOException, Repository
369369

370370
HttpRequest method = applyAdditionalHeaders(
371371
HttpRequests.delete(Protocol.getRepositoryLocation(serverURL, repositoryID)))
372-
.build();
372+
.build();
373373

374374
try {
375375
executeNoContent(method);
@@ -430,7 +430,7 @@ public void getNamespaces(TupleQueryResultHandler handler) throws IOException, T
430430

431431
HttpRequest method = applyAdditionalHeaders(
432432
HttpRequests.get(Protocol.getNamespacesLocation(getQueryURL())))
433-
.build();
433+
.build();
434434

435435
try {
436436
getTupleQueryResult(method, handler);
@@ -445,7 +445,7 @@ public String getNamespace(String prefix) throws IOException, RepositoryExceptio
445445

446446
HttpRequest method = applyAdditionalHeaders(
447447
HttpRequests.get(Protocol.getNamespacePrefixLocation(getQueryURL(), prefix)))
448-
.build();
448+
.build();
449449

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

473473
try {
474474
executeNoContent(method);
@@ -484,7 +484,7 @@ public void removeNamespacePrefix(String prefix) throws IOException, RepositoryE
484484

485485
HttpRequest method = applyAdditionalHeaders(
486486
HttpRequests.delete(Protocol.getNamespacePrefixLocation(getQueryURL(), prefix)))
487-
.build();
487+
.build();
488488

489489
try {
490490
executeNoContent(method);
@@ -500,7 +500,7 @@ public void clearNamespaces() throws IOException, RepositoryException, Unauthori
500500

501501
HttpRequest method = applyAdditionalHeaders(
502502
HttpRequests.delete(Protocol.getNamespacesLocation(getQueryURL())))
503-
.build();
503+
.build();
504504

505505
try {
506506
executeNoContent(method);
@@ -533,7 +533,7 @@ public void getContextIDs(TupleQueryResultHandler handler) throws IOException, T
533533

534534
HttpRequest method = applyAdditionalHeaders(
535535
HttpRequests.get(Protocol.getContextsLocation(getQueryURL())))
536-
.build();
536+
.build();
537537

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

627627
try (HttpResponse response = execute(method)) {
628628
int code = response.getStatusCode();
@@ -694,7 +694,7 @@ public synchronized void rollbackTransaction() throws RDF4JException, IOExceptio
694694
String requestURL = transactionURL;
695695
HttpRequest method = applyAdditionalHeaders(
696696
HttpRequests.delete(requestURL))
697-
.build();
697+
.build();
698698

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

788788
try {
789789
executeNoContent(method);

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@
345345
<importOrder>
346346
<order>java,javax,org,com</order>
347347
</importOrder>
348-
<removeUnusedImports />
348+
<!-- <removeUnusedImports /> RE-ENABLE THIS WHEN WE MOVE TO USING JAVA 25-->
349349
<trimTrailingWhitespace />
350350
<endWithNewline />
351351
</java>

0 commit comments

Comments
 (0)