Skip to content

Commit

Permalink
Improve code format
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisJehan committed Nov 9, 2024
1 parent 4019c88 commit 5b74015
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/examples/ConcreteExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
public final class ConcreteExample {

private static final String DELIMITER = ",";

private static final int LENGTH = 3;

// Source: https://en.wikipedia.org/wiki/Java_version_history
Expand Down
1 change: 1 addition & 0 deletions src/main/java/examples/OptimizeExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
public final class OptimizeExample {

private static final char DELIMITER = ',';

private static final int LENGTH = 3;

private OptimizeExample() {}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/examples/SimpleExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
public final class SimpleExample {

private static final String DELIMITER = "\t";

private static final int LENGTH = 3;

private SimpleExample() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
final class DsvMendCandidateTest {

private static final String[] VALUE = ObjectArrays.of("foo");

private static final double SCORE = 1.0d;

private final DsvMendCandidate dsvMendCandidate = new DsvMendCandidate(VALUE, SCORE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
final class DsvMendResultTest {

private static final String[] VALUE = ObjectArrays.of("foo");

private static final Set<DsvMendCandidate> CANDIDATES;

private static final DsvMendCandidate BEST_CANDIDATE;

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,17 @@
final class DsvMenderBuilderTest {

private static final String DELIMITER = ",";

private static final int LENGTH = 3;

private static final int MAX_DEPTH = 5;

private static final Predicate<String> CONSTRAINT_VALIDATOR = "foo"::equals;

private static final int[] CONSTRAINT_INDEXES = IntArrays.singleton(0);

private static final Function<String, ?> ESTIMATION_TRANSFORMER = Function.identity();

private static final int[] ESTIMATION_INDEXES = IntArrays.singleton(0);

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,14 @@
final class DsvMenderTest {

private static final String DELIMITER = ",";

private static final int LENGTH = 3;

private static final int MAX_DEPTH = 5;

private static final Supplier<Set<ConstraintEvaluator<String[]>>> CONSTRAINT_EVALUATORS_GENERATOR
= () -> Set.of(new ConstraintEvaluator<>(values -> "foo".equals(values[0])));

private static final Supplier<Set<EstimationEvaluator<String[]>>> ESTIMATION_EVALUATORS_GENERATOR
= () -> Set.of(new EstimationEvaluator<>(values -> values[2]));

Expand Down

0 comments on commit 5b74015

Please sign in to comment.