Mark method as static. #1555

Fixes `MethodMayBeStatic` inspection violation introduced in recent commit.

Description:
>Reports any methods which may safely be made static. A method may be static if it is not synchronized, it does not reference any of its class' non static methods and non static fields and is not overridden in a sub class.
This commit is contained in:
Michal Kordas 2015-08-27 22:57:59 +02:00 committed by Roman Ivanov
parent 95f8b08af8
commit a384794ade
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck {
* @param paramName name of parameter
* @return true if parameter found and removed
*/
private boolean removeMatchingParam(List<DetailAST> params, String paramName) {
private static boolean removeMatchingParam(List<DetailAST> params, String paramName) {
boolean found = false;
final Iterator<DetailAST> paramIt = params.iterator();
while (paramIt.hasNext()) {