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:
parent
95f8b08af8
commit
a384794ade
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue