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