FINERACT-2491: Refactor SavingsEnumerations to use switch expression

This commit is contained in:
Abdelrahman Mostafa
2026-02-17 14:11:32 +00:00
committed by Adam Saghy
parent e4e0082872
commit 92f8b3d0d4
3 changed files with 179 additions and 28 deletions
@@ -393,7 +393,7 @@ public class AuditReadPlatformServiceImpl implements AuditReadPlatformService {
commandAsJsonMap.remove(typeName);
final Integer enumTypeId = auditObject.get(typeName).getAsInt();
final String code = SavingsEnumerations.savingEnumueration(typeName, enumTypeId).getValue();
final String code = SavingsEnumerations.savingEnumeration(typeName, enumTypeId).getValue();
if (code != null) {
commandAsJsonMap.put(typeName, code);
}