removed unnecessary normalization
This commit is contained in:
@@ -23,8 +23,7 @@ public record TariffConfiguration(Map<String, BigDecimal> animalBaseSums,
|
||||
throw new IllegalArgumentException("Tierart darf nicht leer oder null sein.");
|
||||
}
|
||||
|
||||
String normalizedKey = species.trim().toUpperCase();
|
||||
BigDecimal baseSum = animalBaseSums.get(normalizedKey);
|
||||
BigDecimal baseSum = animalBaseSums.get(species);
|
||||
|
||||
if (baseSum == null) {
|
||||
throw new IllegalArgumentException(
|
||||
|
||||
Reference in New Issue
Block a user