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);
|
throw new IllegalArgumentException("Alter kann nicht negativ sein: " + age);
|
||||||
}
|
}
|
||||||
|
|
||||||
var entry = ageFactors.ceilingEntry(age);
|
return ageFactors.ceilingEntry(age).getValue();
|
||||||
if (entry == null) {
|
|
||||||
throw new IllegalStateException("Alter überschreitet maximal zulässigen Systemwert.");
|
|
||||||
}
|
|
||||||
|
|
||||||
return entry.getValue();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getBreedFactor(String breed) {
|
public BigDecimal getBreedFactor(String breed) {
|
||||||
|
|||||||
Reference in New Issue
Block a user