Skip to content

Commit

Permalink
chore: bring Sonar reliability rating back to green
Browse files Browse the repository at this point in the history
  • Loading branch information
triceo committed Mar 27, 2024
1 parent a7e7a19 commit 4a62ced
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.util.ValueRangeIterator;
import ai.timefold.solver.core.impl.solver.random.RandomUtils;

public class BigDecimalValueRange extends AbstractCountableValueRange<BigDecimal> {
public final class BigDecimalValueRange extends AbstractCountableValueRange<BigDecimal> {

private final BigDecimal from;
private final BigDecimal to;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.util.ValueRangeIterator;
import ai.timefold.solver.core.impl.solver.random.RandomUtils;

public class BigIntegerValueRange extends AbstractCountableValueRange<BigInteger> {
public final class BigIntegerValueRange extends AbstractCountableValueRange<BigInteger> {

private final BigInteger from;
private final BigInteger to;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.AbstractCountableValueRange;
import ai.timefold.solver.core.impl.heuristic.selector.common.iterator.CachedListRandomIterator;

public class ListValueRange<T> extends AbstractCountableValueRange<T> {
public final class ListValueRange<T> extends AbstractCountableValueRange<T> {

private final List<T> list;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.util.ValueRangeIterator;
import ai.timefold.solver.core.impl.solver.random.RandomUtils;

public class CompositeCountableValueRange<T> extends AbstractCountableValueRange<T> {
public final class CompositeCountableValueRange<T> extends AbstractCountableValueRange<T> {

private final List<? extends CountableValueRange<T>> childValueRangeList;
private final long size;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.AbstractCountableValueRange;
import ai.timefold.solver.core.impl.domain.valuerange.util.ValueRangeIterator;

public class EmptyValueRange<T> extends AbstractCountableValueRange<T> {

public EmptyValueRange() {
}
public final class EmptyValueRange<T> extends AbstractCountableValueRange<T> {

@Override
public long getSize() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.AbstractCountableValueRange;
import ai.timefold.solver.core.impl.domain.valuerange.util.ValueRangeIterator;

public class BooleanValueRange extends AbstractCountableValueRange<Boolean> {

public BooleanValueRange() {
}
public final class BooleanValueRange extends AbstractCountableValueRange<Boolean> {

@Override
public long getSize() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.util.ValueRangeIterator;
import ai.timefold.solver.core.impl.solver.random.RandomUtils;

public class IntValueRange extends AbstractCountableValueRange<Integer> {
public final class IntValueRange extends AbstractCountableValueRange<Integer> {

private final int from;
private final int to;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.util.ValueRangeIterator;
import ai.timefold.solver.core.impl.solver.random.RandomUtils;

public class LongValueRange extends AbstractCountableValueRange<Long> {
public final class LongValueRange extends AbstractCountableValueRange<Long> {

private final long from;
private final long to;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import ai.timefold.solver.core.impl.domain.valuerange.util.ValueRangeIterator;
import ai.timefold.solver.core.impl.solver.random.RandomUtils;

public class TemporalValueRange<Temporal_ extends Temporal & Comparable<? super Temporal_>>
public final class TemporalValueRange<Temporal_ extends Temporal & Comparable<? super Temporal_>>
extends AbstractCountableValueRange<Temporal_> {

private final Temporal_ from;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,13 @@ public int hashCode() {
result = 31 * result + Arrays.hashCode(offsets);
return result;
}

@Override
public String toString() {
return "EntityOrderInfo{" +
"entities=" + Arrays.toString(entities) +
", entityToEntityIndex=" + entityToEntityIndex +
", offsets=" + Arrays.toString(offsets) +
'}';
}
}

0 comments on commit 4a62ced

Please sign in to comment.