-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix new Sonar smells for MMIH #2795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pay attention, please, how I have fixed |
* Fix complexity smells in the `MessagingMethodInvokerHelper` * Reuse `get()` in the `ZookeeperMetadataStore` in case of `putIfAbsent()` error * Polishing for `ZookeeperMetadataStoreTests` * Fix for `hasUnqualifiedMapParameter` * Fix `findHandlerMethodsForTarget()` complexity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one typo; good work - this class has needed this for a long time.
} | ||
|
||
private boolean isMethodEligible(Method methodToProcess) { | ||
return !(methodToProcess.isBridge() || // NOSONAR bollean complexity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo boolean
throw new ZookeeperMetadataStoreException("Exception while reading node with key '" + key + "':", | ||
exceptionDuringGet); | ||
} | ||
return get(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gary, is this fix OK with you?
Because we would need to back-port it anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it looks fine; I'll backport it along with the other bugs in ZK from my Sonar fixes.
Looks like I forgot to push the fix you had requested. |
MessagingMethodInvokerHelper
get()
in theZookeeperMetadataStore
in case ofputIfAbsent()
errorZookeeperMetadataStoreTests
hasUnqualifiedMapParameter
findHandlerMethodsForTarget()
complexity