Skip to content

Commit 804c6a9

Browse files
timtebeekTeamModerne
authored andcommitted
1 parent 201477d commit 804c6a9

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed

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

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3937,31 +3937,6 @@ examples:
39373937
</dependency>
39383938
</dependencies>
39393939
</project>
3940-
after: |
3941-
<project>
3942-
<groupId>com.example.ehcache</groupId>
3943-
<artifactId>ehcache-legacy</artifactId>
3944-
<version>1.0.0</version>
3945-
<dependencies>
3946-
<dependency>
3947-
<groupId>org.ehcache</groupId>
3948-
<artifactId>ehcache</artifactId>
3949-
<version>3.10.8</version>
3950-
<classifier>jakarta</classifier>
3951-
</dependency>
3952-
<dependency>
3953-
<groupId>org.ehcache</groupId>
3954-
<artifactId>ehcache-clustered</artifactId>
3955-
<version>3.10.8</version>
3956-
</dependency>
3957-
<dependency>
3958-
<groupId>org.ehcache</groupId>
3959-
<artifactId>ehcache-transactions</artifactId>
3960-
<version>3.10.8</version>
3961-
<classifier>jakarta</classifier>
3962-
</dependency>
3963-
</dependencies>
3964-
</project>
39653940
path: pom.xml
39663941
language: xml
39673942
---
@@ -6009,6 +5984,32 @@ examples:
60095984
language: java
60105985
---
60115986
type: specs.openrewrite.org/v1beta/example
5987+
recipeName: org.openrewrite.java.migrate.lang.MigrateProcessWaitForDuration
5988+
examples:
5989+
- description: ''
5990+
sources:
5991+
- before: |
5992+
import static java.util.concurrent.TimeUnit.SECONDS;
5993+
import static java.util.concurrent.TimeUnit.MILLISECONDS;
5994+
5995+
class Test {
5996+
void test(Process process) throws Exception {
5997+
process.waitFor(5, SECONDS);
5998+
process.waitFor(100, MILLISECONDS);
5999+
}
6000+
}
6001+
after: |
6002+
import java.time.Duration;
6003+
6004+
class Test {
6005+
void test(Process process) throws Exception {
6006+
process.waitFor(Duration.ofSeconds(5));
6007+
process.waitFor(Duration.ofMillis(100));
6008+
}
6009+
}
6010+
language: java
6011+
---
6012+
type: specs.openrewrite.org/v1beta/example
60126013
recipeName: org.openrewrite.java.migrate.lang.MigrateSecurityManagerMulticast
60136014
examples:
60146015
- description: ''

0 commit comments

Comments
 (0)