Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
import org.openrewrite.java.tree.TypeUtils;
import org.openrewrite.marker.SearchResult;

import java.util.regex.Pattern;

import static java.util.stream.Collectors.joining;

@EqualsAndHashCode(callSuper = false)
Expand Down
19 changes: 19 additions & 0 deletions src/main/resources/META-INF/rewrite/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6034,6 +6034,25 @@ examples:
language: java
---
type: specs.openrewrite.org/v1beta/example
recipeName: org.openrewrite.java.migrate.lang.MigrateMainMethodToInstanceMain
examples:
- description: ''
sources:
- before: |
class Application {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
after: |
class Application {
void main() {
System.out.println("Hello, World!");
}
}
language: java
---
type: specs.openrewrite.org/v1beta/example
recipeName: org.openrewrite.java.migrate.lang.MigrateProcessWaitForDuration
examples:
- description: ''
Expand Down