FINERACT-822 enable MixedMutabilityReturnType error

FINERACT-822 enable MixedMutabilityReturnType error
This commit is contained in:
percyashu
2020-06-13 11:29:25 +01:00
committed by Yemdjih Kaze Nasser
parent 885a501c64
commit 73a8816f13
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -313,7 +313,6 @@ tasks.withType(JavaCompile) {
disable(
"UnusedVariable",
"ClassCanBeStatic",
"MixedMutabilityReturnType",
"SameNameButDifferent",
"StringSplitter",
"MissingOverride",
@@ -338,6 +337,7 @@ tasks.withType(JavaCompile) {
"VariableNameSameAsType",
"UnnecessaryParentheses",
"MultipleTopLevelClasses",
"MixedMutabilityReturnType",
"MultiVariableDeclaration",
"AssertEqualsArgumentOrderChecker",
"EmptySetMultibindingContributions",
@@ -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) {