Skip to content

Instantly share code, notes, and snippets.

@mike-solomon
Created December 5, 2022 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mike-solomon/0f9a171d0b444f3bb576f9cba2e5a304 to your computer and use it in GitHub Desktop.
Save mike-solomon/0f9a171d0b444f3bb576f9cba2e5a304 to your computer and use it in GitHub Desktop.
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