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:
Michal Kordas 2015-08-28 17:27:02 +02:00 committed by Roman Ivanov
parent 7c9772cee7
commit ef834b210c
1 changed files with 1 additions and 2 deletions

View File

@ -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