Skip to content

Commit

Permalink
Fix jakarta deps
Browse files Browse the repository at this point in the history
  • Loading branch information
badgerwithagun committed Mar 1, 2021
1 parent b24bf3a commit e5e22ca
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package com.gruelbox.transactionoutbox;

import jakarta.validation.constraints.NotNull;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Collections;
import java.util.List;
import java.util.Map;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.gruelbox.transactionoutbox;

import jakarta.validation.constraints.NotNull;
import java.io.IOException;
import java.io.Reader;
import java.io.StringWriter;
Expand All @@ -13,8 +14,6 @@
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;

import jakarta.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

import static com.gruelbox.transactionoutbox.Utils.uncheckedly;

import jakarta.validation.constraints.NotBlank;
import java.sql.Connection;
import java.sql.DriverManager;

import jakarta.validation.constraints.NotBlank;
import lombok.experimental.SuperBuilder;
import lombok.extern.slf4j.Slf4j;

Expand All @@ -28,8 +27,7 @@
@Slf4j
final class DriverConnectionProvider implements ConnectionProvider {

@NotBlank
private final String driverClassName;
@NotBlank private final String driverClassName;

@NotBlank private final String url;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.gruelbox.transactionoutbox;

import jakarta.validation.constraints.NotNull;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executor;
import java.util.concurrent.RejectedExecutionException;
import java.util.function.Consumer;

import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.event.Level;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package com.gruelbox.transactionoutbox;

import jakarta.validation.ClockProvider;
import java.time.Clock;
import java.time.Duration;
import java.util.concurrent.Executor;

import jakarta.validation.ClockProvider;
import lombok.ToString;
import org.slf4j.MDC;
import org.slf4j.event.Level;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

import static java.util.stream.Collectors.joining;

import java.time.Instant;
import java.util.Arrays;

import jakarta.validation.constraints.Future;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PositiveOrZero;
import java.time.Instant;
import java.util.Arrays;
import lombok.AccessLevel;
import lombok.EqualsAndHashCode;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@
import static java.time.temporal.ChronoUnit.MILLIS;
import static java.time.temporal.ChronoUnit.MINUTES;

import jakarta.validation.ClockProvider;
import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import java.lang.reflect.InvocationTargetException;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicBoolean;

import jakarta.validation.ClockProvider;
import jakarta.validation.Valid;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.validator.constraints.Length;
Expand All @@ -29,10 +28,8 @@ class TransactionOutboxImpl implements TransactionOutbox {

private static final int DEFAULT_FLUSH_BATCH_SIZE = 4096;

@NotNull
private final TransactionManager transactionManager;
@Valid
@NotNull private final Persistor persistor;
@NotNull private final TransactionManager transactionManager;
@Valid @NotNull private final Persistor persistor;
@Valid @NotNull private final Instantiator instantiator;
@NotNull private final Submitter submitter;
@NotNull private final Duration attemptFrequency;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertThrows;

import jakarta.validation.ValidationException;
import java.math.BigDecimal;
import java.time.Clock;
import java.time.Instant;
import java.time.ZoneId;

import jakarta.validation.ValidationException;
import org.junit.jupiter.api.Test;

class TestValidator {
Expand Down

0 comments on commit e5e22ca

Please sign in to comment.