FINERACT-822 enable ArgumentSelectionDefectChecker warning (#961)
This commit is contained in:
@@ -324,7 +324,6 @@ tasks.withType(JavaCompile) {
|
||||
"BadImport",
|
||||
"UnusedMethod",
|
||||
"ModifiedButNotUsed",
|
||||
"ArgumentSelectionDefectChecker",
|
||||
"JodaPlusMinusLong",
|
||||
"TypeParameterUnusedInFormals",
|
||||
"DoubleBraceInitialization",
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class CreditBureauReadPlatformServiceImpl implements CreditBureauReadPlat
|
||||
final String cbSummary = rs.getString("cbSummary");
|
||||
final long implementationKey = rs.getLong("implementationKey");
|
||||
|
||||
return CreditBureauData.instance(id, name, product, country, cbSummary, implementationKey);
|
||||
return CreditBureauData.instance(id, name, country, product, cbSummary, implementationKey);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ public interface HookReadPlatformService {
|
||||
|
||||
HookData retrieveHook(Long hookId);
|
||||
|
||||
List<Hook> retrieveHooksByEvent(final String actionName, final String entityName);
|
||||
List<Hook> retrieveHooksByEvent(final String entityName,final String actionName);
|
||||
|
||||
HookData retrieveNewHookDetails(String templateName);
|
||||
}
|
||||
|
||||
+3
-4
@@ -84,11 +84,10 @@ public class HookReadPlatformServiceImpl implements HookReadPlatformService {
|
||||
|
||||
@Override
|
||||
@Cacheable(value = "hooks", key = "T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier().concat('HK')")
|
||||
public List<Hook> retrieveHooksByEvent(final String actionName,
|
||||
final String entityName) {
|
||||
public List<Hook> retrieveHooksByEvent(final String entityName, final String actionName) {
|
||||
|
||||
return this.hookRepository.findAllHooksListeningToEvent(actionName,
|
||||
entityName);
|
||||
return this.hookRepository.findAllHooksListeningToEvent(entityName,
|
||||
actionName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user