github-code-scanning[bot] commented on code in PR #374:
URL: https://github.com/apache/syncope/pull/374#discussion_r963705548
##########
core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/validation/entity/ProvisioningTaskValidator.java:
##########
@@ -34,7 +35,9 @@
@Override
public boolean isValid(final ProvisioningTask task, final
ConstraintValidatorContext context) {
- boolean isValid = schedV.isValid(task, context);
+ boolean isValid = task instanceof SchedTask
Review Comment:
## Useless type test
There is no need to test whether an instance of [ProvisioningTask<>](1) is
also an instance of [SchedTask](2) - it always is.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/1149)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]