-
-
Save mike-solomon/0f9a171d0b444f3bb576f9cba2e5a304 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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