You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: All variable we need have to be declared at the beginning of its scope. If variable declared inside the scope following after logical blocks we consider that this is the pattern.
It contradicts with existing PMD rule PrematureDeclaration:
Avoid declaring a variable if it is unreferenced before a possible exit point.
If I fix Aibolit P21 issue, then PMD will complain.
The text was updated successfully, but these errors were encountered:
The pattern
P21
says:It contradicts with existing PMD rule
PrematureDeclaration
:If I fix Aibolit
P21
issue, then PMD will complain.The text was updated successfully, but these errors were encountered: