removed dead exception check
This commit is contained in:
@@ -55,12 +55,7 @@ public record TariffConfiguration(Map<String, BigDecimal> animalBaseSums,
|
||||
throw new IllegalArgumentException("Alter kann nicht negativ sein: " + age);
|
||||
}
|
||||
|
||||
var entry = ageFactors.ceilingEntry(age);
|
||||
if (entry == null) {
|
||||
throw new IllegalStateException("Alter überschreitet maximal zulässigen Systemwert.");
|
||||
}
|
||||
|
||||
return entry.getValue();
|
||||
return ageFactors.ceilingEntry(age).getValue();
|
||||
}
|
||||
|
||||
public BigDecimal getBreedFactor(String breed) {
|
||||
|
||||
Reference in New Issue
Block a user