Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sonar cleanup in AbstractInvoker (#33)
* Make constructor of AbstractInvoker protected (java:S5993 - Constructors of an "abstract" class should not be declared "public") * Remove unnecessary null check in AbstractInvoker (java:S4201 - Null checks should not be used with "instanceof") * Remove null check and use pattern matching in AbstractInvoker (java:S4201 - Null checks should not be used with "instanceof"; java:S6201 - Pattern Matching for "instanceof" operator should be used instead of simple "instanceof" + cast) * Remove redundant abstract method in AbstractInvoker (java:S3038 Abstract methods should not be redundant) * Throw dedicated exception in AbstractInvoker. Throw an IllegalStateException instead of RuntimeException when the target method can't be found (java:S112 - Generic exceptions should never be thrown)
- Loading branch information