Skip to content

Commit 640ac12

Browse files
1 parent 2fd7b1b commit 640ac12

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

src/main/java/org/openrewrite/java/migrate/search/FindInternalJavaxApis.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import org.openrewrite.java.tree.TypeUtils;
3030
import org.openrewrite.marker.SearchResult;
3131

32-
import java.util.regex.Pattern;
33-
3432
import static java.util.stream.Collectors.joining;
3533

3634
@EqualsAndHashCode(callSuper = false)

src/main/resources/META-INF/rewrite/examples.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6034,6 +6034,25 @@ examples:
60346034
language: java
60356035
---
60366036
type: specs.openrewrite.org/v1beta/example
6037+
recipeName: org.openrewrite.java.migrate.lang.MigrateMainMethodToInstanceMain
6038+
examples:
6039+
- description: ''
6040+
sources:
6041+
- before: |
6042+
class Application {
6043+
public static void main(String[] args) {
6044+
System.out.println("Hello, World!");
6045+
}
6046+
}
6047+
after: |
6048+
class Application {
6049+
void main() {
6050+
System.out.println("Hello, World!");
6051+
}
6052+
}
6053+
language: java
6054+
---
6055+
type: specs.openrewrite.org/v1beta/example
60376056
recipeName: org.openrewrite.java.migrate.lang.MigrateProcessWaitForDuration
60386057
examples:
60396058
- description: ''

0 commit comments

Comments
 (0)