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 JavadocProcessor extends AbstractProcessor<CtElement> {
    public void process(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("")) {
                    getFactory().getEnvironment().report(this,
                            .element"undocument element");
                }
            }
        }
    }
New to GrepCode? Check out our FAQ X