Skip to content

Instantly share code, notes, and snippets.

@mike-solomon
Created December 5, 2022 20:58
Embed
What would you like to do?
package org.yourorg.starter;
import org.openrewrite.ExecutionContext;
import org.openrewrite.Recipe;
import org.openrewrite.TreeVisitor;
import org.openrewrite.java.JavaVisitor;
import org.openrewrite.java.tree.J;
public class SomeRecipe extends Recipe {
@Override
public String getDisplayName() {
return "Name";
}
@Override
public String getDescription() {
return "Description.";
}
@Override
protected TreeVisitor<?, ExecutionContext> getVisitor() {
return new JavaVisitor<ExecutionContext>() {
@Override
public J visitCompilationUnit(J.CompilationUnit cu, ExecutionContext executionContext) {
return super.visitCompilationUnit(cu, executionContext);
}
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment