Rename non-boolean method starting with question word. #1555
Fixes `NonBooleanMethodNameMayNotStartWithQuestion` inspection violations. Description: >Reports non-boolean methods whose names start with a question word. Non-boolean methods that override library methods are ignored by this inspection.
This commit is contained in:
parent
d345f3beb2
commit
c4a7d06206
|
|
@ -449,7 +449,7 @@ public class VisibilityModifierCheck
|
|||
*/
|
||||
private boolean hasIgnoreAnnotation(DetailAST variableDef) {
|
||||
final DetailAST firstIgnoreAnnotation =
|
||||
containsMatchingAnnotation(variableDef);
|
||||
findMatchingAnnotation(variableDef);
|
||||
return firstIgnoreAnnotation != null;
|
||||
}
|
||||
|
||||
|
|
@ -751,7 +751,7 @@ public class VisibilityModifierCheck
|
|||
* @return the AST representing the first such annotation or null if
|
||||
* no such annotation was found
|
||||
*/
|
||||
private DetailAST containsMatchingAnnotation(DetailAST variableDef) {
|
||||
private DetailAST findMatchingAnnotation(DetailAST variableDef) {
|
||||
DetailAST matchingAnnotation = null;
|
||||
|
||||
final DetailAST holder = AnnotationUtility.getAnnotationHolder(variableDef);
|
||||
|
|
|
|||
Loading…
Reference in New Issue