When we have a method like:
public someType someMethod() {
synchronized (someObject) {
doSomething();
return something;
}
}
we get a msg like:
"The method someMethod in class SomeClass is missing an explicit return ImplicitReturnStatement"
which I consider incorrect in this specific construct.
I reported this issue on npm-groovy-lint, but the response I got was, "this is a CodeNarc issue".
See:
nvuillam/npm-groovy-lint#264
When we have a method like:
we get a msg like:
"The method someMethod in class SomeClass is missing an explicit return ImplicitReturnStatement"
which I consider incorrect in this specific construct.
I reported this issue on npm-groovy-lint, but the response I got was, "this is a CodeNarc issue".
See:
nvuillam/npm-groovy-lint#264