FINERACT-822 enable DoubleBraceInitialization error
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
117398b765
commit
4c004f0a87
@@ -328,7 +328,6 @@ tasks.withType(JavaCompile) {
|
||||
"ModifiedButNotUsed",
|
||||
"JodaPlusMinusLong",
|
||||
"TypeParameterUnusedInFormals",
|
||||
"DoubleBraceInitialization",
|
||||
"UnusedNestedClass",
|
||||
"UndefinedEquals",
|
||||
)
|
||||
@@ -374,6 +373,7 @@ tasks.withType(JavaCompile) {
|
||||
"OperatorPrecedence",
|
||||
"EqualsGetClass",
|
||||
"JdkObsolete",
|
||||
"DoubleBraceInitialization",
|
||||
// "ReturnMissingNullable",
|
||||
// "InconsistentOverloads",
|
||||
// "MethodCanBeStatic",
|
||||
|
||||
+11
-13
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
package org.apache.fineract.infrastructure.dataqueries.service;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonObject;
|
||||
@@ -89,19 +90,16 @@ public class ReadWriteNonCoreDataServiceImpl implements ReadWriteNonCoreDataServ
|
||||
private final static String CODE_VALUES_TABLE = "m_code_value";
|
||||
|
||||
private final static Logger LOG = LoggerFactory.getLogger(ReadWriteNonCoreDataServiceImpl.class);
|
||||
private final static HashMap<String, String> apiTypeToMySQL = new HashMap<String, String>() {
|
||||
|
||||
{
|
||||
put("string", "VARCHAR");
|
||||
put("number", "INT");
|
||||
put("boolean", "BIT");
|
||||
put("decimal", "DECIMAL");
|
||||
put("date", "DATE");
|
||||
put("datetime", "DATETIME");
|
||||
put("text", "TEXT");
|
||||
put("dropdown", "INT");
|
||||
}
|
||||
};
|
||||
private final static ImmutableMap<String, String> apiTypeToMySQL = ImmutableMap.<String, String>builder()
|
||||
.put("string", "VARCHAR")
|
||||
.put("number", "INT")
|
||||
.put("boolean", "BIT")
|
||||
.put("decimal", "DECIMAL")
|
||||
.put("date", "DATE")
|
||||
.put("datetime", "DATETIME")
|
||||
.put("text", "TEXT")
|
||||
.put("dropdown", "INT")
|
||||
.build();
|
||||
|
||||
private final static List<String> stringDataTypes = Arrays.asList("char", "varchar", "blob", "text", "tinyblob", "tinytext",
|
||||
"mediumblob", "mediumtext", "longblob", "longtext");
|
||||
|
||||
+5
-9
@@ -19,6 +19,7 @@
|
||||
package org.apache.fineract.infrastructure.security.exception;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.apache.fineract.infrastructure.core.data.ApiParameterError;
|
||||
import org.apache.fineract.infrastructure.core.exception.PlatformApiDataValidationException;
|
||||
|
||||
@@ -31,17 +32,12 @@ public class ResetPasswordException extends PlatformApiDataValidationException {
|
||||
public ResetPasswordException(final Long userId) {
|
||||
|
||||
super("error.msg.password.outdated", "The password of the user with id " + userId + " has expired, please reset it",
|
||||
new ArrayList<ApiParameterError>() {
|
||||
|
||||
{
|
||||
add(ApiParameterError.parameterError("error.msg.password.outdated", "The password of the user with id " + userId
|
||||
+ " has expired, please reset it", "userId", userId));
|
||||
|
||||
}
|
||||
}
|
||||
new ArrayList<ApiParameterError> (List.of(
|
||||
ApiParameterError.parameterError("error.msg.password.outdated", "The password of the user with id " + userId
|
||||
+ " has expired, please reset it", "userId", userId)))
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+3
-6
@@ -49,12 +49,9 @@ public class SpringSecurityPlatformSecurityContext implements PlatformSecurityCo
|
||||
|
||||
private final ConfigurationDomainService configurationDomainService;
|
||||
|
||||
protected static final List<CommandWrapper> EXEMPT_FROM_PASSWORD_RESET_CHECK = new ArrayList<CommandWrapper>() {
|
||||
|
||||
{
|
||||
add(new CommandWrapperBuilder().updateUser(null).build());
|
||||
}
|
||||
};
|
||||
protected static final List<CommandWrapper> EXEMPT_FROM_PASSWORD_RESET_CHECK = new ArrayList<CommandWrapper>(List.of(
|
||||
new CommandWrapperBuilder().updateUser(null).build())
|
||||
);
|
||||
|
||||
@Autowired
|
||||
SpringSecurityPlatformSecurityContext(final ConfigurationDomainService configurationDomainService) {
|
||||
|
||||
Reference in New Issue
Block a user