Issue #1555: Narrow scope of variable
Fixes `TooBroadScope` inspection violations introduced in recent commit. Description: >Reports any variable declarations of which the scope can be narrowed. Especially useful for "Pascal style" declarations at the start of a method, but variables with too broad a scope are also often left over after refactorings.
This commit is contained in:
parent
7c9772cee7
commit
ef834b210c
|
|
@ -748,9 +748,8 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck {
|
|||
|
||||
tagIt.remove();
|
||||
|
||||
boolean found;
|
||||
final String arg1 = tag.getFirstArg();
|
||||
found = removeMatchingParam(params, arg1);
|
||||
boolean found = removeMatchingParam(params, arg1);
|
||||
|
||||
if (CommonUtils.startsWithChar(arg1, '<') && CommonUtils.endsWithChar(arg1, '>')) {
|
||||
// Loop looking for matching type param
|
||||
|
|
|
|||
Loading…
Reference in New Issue