FINERACT-822 enable MixedMutabilityReturnType error
FINERACT-822 enable MixedMutabilityReturnType error
This commit is contained in:
committed by
Yemdjih Kaze Nasser
parent
885a501c64
commit
73a8816f13
@@ -19,7 +19,6 @@
|
||||
package org.apache.fineract.spm.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -50,10 +49,10 @@ public class LookupTableMapper {
|
||||
lookupTableData.getEntries().add(new LookupTableEntry(lookupTable.getValueFrom(),
|
||||
lookupTable.getValueTo(), lookupTable.getScore()));
|
||||
}
|
||||
return new ArrayList<>(lookupTableDataMap.values());
|
||||
return List.copyOf(lookupTableDataMap.values());
|
||||
}
|
||||
|
||||
return Collections.emptyList();
|
||||
return List.of();
|
||||
}
|
||||
|
||||
public static List<LookupTable> map(final LookupTableData lookupTableData, final Survey survey) {
|
||||
|
||||
Reference in New Issue
Block a user