Skip to content

Commit

Permalink
CAUSEWAY-2297: remove unused imports (prepare for merge into v3)
Browse files Browse the repository at this point in the history
  • Loading branch information
andi-huber committed Jun 12, 2024
1 parent 34438dd commit 362fc77
Showing 1 changed file with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,12 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Collectors;

import javax.inject.Inject;

import org.apache.causeway.commons.functional.Try;
import org.apache.causeway.core.config.CausewayConfiguration;
import org.apache.causeway.core.interaction.session.CausewayInteraction;
import org.apache.causeway.core.runtimeservices.transaction.TransactionServiceSpring;
import org.apache.causeway.extensions.commandlog.applib.dom.CommandLogEntryRepository;

import org.apache.causeway.extensions.commandlog.applib.spi.RunBackgroundCommandsJobListener;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
Expand All @@ -52,7 +43,12 @@
import org.apache.causeway.applib.services.user.UserMemento;
import org.apache.causeway.applib.services.xactn.TransactionService;
import org.apache.causeway.applib.util.schema.CommandDtoUtils;
import org.apache.causeway.commons.functional.Try;
import org.apache.causeway.core.config.CausewayConfiguration;
import org.apache.causeway.core.runtimeservices.transaction.TransactionServiceSpring;
import org.apache.causeway.extensions.commandlog.applib.dom.CommandLogEntry;
import org.apache.causeway.extensions.commandlog.applib.dom.CommandLogEntryRepository;
import org.apache.causeway.extensions.commandlog.applib.spi.RunBackgroundCommandsJobListener;
import org.apache.causeway.schema.cmd.v2.CommandDto;

import lombok.Getter;
Expand Down Expand Up @@ -237,7 +233,7 @@ static class ThrowableWithDetailsOfAttempt extends RuntimeException {
* @param commandDto
* @param interactionContext
*/
private void captureFailure(Throwable throwable, CommandDto commandDto, InteractionContext interactionContext) {
private void captureFailure(final Throwable throwable, final CommandDto commandDto, final InteractionContext interactionContext) {
log.error("Failed to execute command. As per onFailurePolicy, updating CommandLogEntry with result then continuing; command: " + CommandDtoUtils.dtoMapper().toString(commandDto), throwable);

interactionService.run(interactionContext, () -> {
Expand Down Expand Up @@ -273,7 +269,7 @@ private void invokeListenerCallbackWithinTransaction(
.ifFailureFail();
}

private static boolean isEncounteredDeadlock(Try<?> result) {
private static boolean isEncounteredDeadlock(final Try<?> result) {
if (!result.isFailure()) {
return false;
}
Expand All @@ -282,7 +278,7 @@ private static boolean isEncounteredDeadlock(Try<?> result) {
.orElse(false);
}

private static void sleep(long retryIntervalMs) {
private static void sleep(final long retryIntervalMs) {
try {
Thread.sleep(retryIntervalMs);
} catch (InterruptedException e) {
Expand Down

0 comments on commit 362fc77

Please sign in to comment.