Skip to content

Commit

Permalink
Autoformat changes
Browse files Browse the repository at this point in the history
These are all changes that the autoformatter makes when running the
build.
  • Loading branch information
Azquelt committed Feb 20, 2024
1 parent f297f33 commit a6fffc7
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.util.function.Supplier;

import org.eclipse.microprofile.fault.tolerance.tck.RetryConditionTest;

/*
*******************************************************************************
* Copyright (c) 2018 Contributors to the Eclipse Foundation
Expand Down Expand Up @@ -84,7 +83,8 @@ public CompletionStage<String> serviceA() {
public CompletionStage<String> serviceBFailExceptionally(final CompletionStage future) {
countInvocationsServBFailExceptionally++;
// always fail
future.toCompletableFuture().completeExceptionally(new IOException(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE));
future.toCompletableFuture()
.completeExceptionally(new IOException(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE));
return future;
}

Expand Down Expand Up @@ -135,7 +135,8 @@ public CompletionStage<String> serviceD() {
if (countInvocationsServD < 3) {
// fail 2 first invocations
return CompletableFuture.supplyAsync(doTask(null), executor)
.thenCompose(s -> CompletableFuture.supplyAsync(doTask(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE), executor));
.thenCompose(s -> CompletableFuture
.supplyAsync(doTask(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE), executor));
} else {
return CompletableFuture.supplyAsync(doTask(null), executor)
.thenCompose(s -> CompletableFuture.supplyAsync(doTask(null), executor));
Expand All @@ -155,7 +156,8 @@ public CompletionStage<String> serviceE() {

// always fail
return CompletableFuture.supplyAsync(doTask(null), executor)
.thenCompose(s -> CompletableFuture.supplyAsync(doTask(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE), executor));
.thenCompose(s -> CompletableFuture.supplyAsync(doTask(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE),
executor));
}

/**
Expand All @@ -172,7 +174,9 @@ public CompletionStage<String> serviceF() {
if (countInvocationsServF < 3) {
// fail 2 first invocations
return CompletableFuture.supplyAsync(doTask(null), executor)
.thenCombine(CompletableFuture.supplyAsync(doTask(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE), executor),
.thenCombine(
CompletableFuture.supplyAsync(doTask(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE),
executor),
(s, s2) -> s + " then " + s2);
} else {
return CompletableFuture.supplyAsync(doTask(null), executor)
Expand All @@ -194,7 +198,8 @@ public CompletionStage<String> serviceG() {
countInvocationsServG++;
// always fail
return CompletableFuture.supplyAsync(doTask(null), executor)
.thenCombine(CompletableFuture.supplyAsync(doTask(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE), executor),
.thenCombine(
CompletableFuture.supplyAsync(doTask(RetryConditionTest.SIMULATED_EXCEPTION_MESSAGE), executor),
(s, s2) -> s + " then " + s2);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
*******************************************************************************/
package org.eclipse.microprofile.fault.tolerance.tck.fallback.clientserver;

import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;
import org.eclipse.microprofile.faulttolerance.Fallback;
import org.eclipse.microprofile.faulttolerance.Retry;
import org.eclipse.microprofile.faulttolerance.Timeout;
import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;

import jakarta.enterprise.context.RequestScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*******************************************************************************/
package org.eclipse.microprofile.fault.tolerance.tck.fallback.clientserver;

import org.eclipse.microprofile.faulttolerance.Fallback;
import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;
import org.eclipse.microprofile.faulttolerance.Fallback;

import jakarta.enterprise.context.RequestScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
*******************************************************************************/
package org.eclipse.microprofile.fault.tolerance.tck.fallback.clientserver;

import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;
import org.eclipse.microprofile.faulttolerance.Fallback;
import org.eclipse.microprofile.faulttolerance.Retry;
import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;

import jakarta.enterprise.context.RequestScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

import java.sql.Connection;

import org.eclipse.microprofile.faulttolerance.Retry;
import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;
import org.eclipse.microprofile.faulttolerance.Retry;

import jakarta.enterprise.context.RequestScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

import java.sql.Connection;

import org.eclipse.microprofile.faulttolerance.Retry;
import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;
import org.eclipse.microprofile.faulttolerance.Retry;

import jakarta.enterprise.context.RequestScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

import java.sql.Connection;

import org.eclipse.microprofile.faulttolerance.Retry;
import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;
import org.eclipse.microprofile.faulttolerance.Retry;

import jakarta.enterprise.context.RequestScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
*******************************************************************************/
package org.eclipse.microprofile.fault.tolerance.tck.visibility.retry;

import java.io.IOException;
import java.sql.Connection;

import jakarta.enterprise.context.RequestScoped;

import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;

@RequestScoped
@RS(RetryServiceType.BASE_ROC_RETRY_MISSING_ON_METHOD)
public class RetryOnClassServiceNoAnnotationOnOveriddenMethod extends BaseRetryOnClassService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
*******************************************************************************/
package org.eclipse.microprofile.fault.tolerance.tck.visibility.retry;

import java.io.IOException;
import java.sql.Connection;

import org.eclipse.microprofile.faulttolerance.Retry;
import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;

import jakarta.enterprise.context.RequestScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
*******************************************************************************/
package org.eclipse.microprofile.fault.tolerance.tck.visibility.retry;

import java.io.IOException;
import java.sql.Connection;

import org.eclipse.microprofile.faulttolerance.Retry;
import org.eclipse.microprofile.fault.tolerance.tck.util.TestException;

import jakarta.enterprise.context.RequestScoped;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* limitations under the License.
*******************************************************************************/
package org.eclipse.microprofile.fault.tolerance.tck.visibility.retry;

import java.sql.Connection;

import jakarta.enterprise.context.RequestScoped;
Expand Down

0 comments on commit a6fffc7

Please sign in to comment.