Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sf.alchim.codeplus.spoonchecker;
 
Report warnings when undocumented elements are found.
public class JavadocAnalyzer extends AbstractAnalyzer<CtElement> {
    @Override
    public void analyze(CtElement element) {
        if ((element instanceof CtSimpleType) || (element instanceof CtField) || (element instanceof CtExecutable)) {
            if (((CtModifiableelement).getModifiers().contains(.) || ((CtModifiableelement).getModifiers().contains(.)) {
                // if(element instanceof CtMethod) {
                // ((CtMethod)element).getReference().getOverloadingExecutable()
                // }
                if ((element.getDocComment() == null) || element.getDocComment().equals("")) {
                    report(element"undocument element");
                }
            }
        }
    }
New to GrepCode? Check out our FAQ X