Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sf.alchim.codeplus.spoonchecker;
 
 
     private String type_;
 
    public SuppressWarningFixer(Class<?> analyzerType) {
         = analyzerType.getSimpleName();
    }
    public String getDescription() {
        return getLabel();
    }
    public String getLabel() {
        return "Add @SuppressWarning '" +  + "'";
    }
    public Changes run(CtElement element) {
        getFactory().Annotation().annotate(elementSuppressWarnings.class"SuppressWarning");
        Changes back = new Changes();
        back.getModified().add(element);
        return back;
    }
New to GrepCode? Check out our FAQ X