@@ -3937,31 +3937,6 @@ examples:
3937
3937
</dependency>
3938
3938
</dependencies>
3939
3939
</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>
3965
3940
path: pom.xml
3966
3941
language: xml
3967
3942
---
@@ -6009,6 +5984,32 @@ examples:
6009
5984
language: java
6010
5985
---
6011
5986
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
6012
6013
recipeName : org.openrewrite.java.migrate.lang.MigrateSecurityManagerMulticast
6013
6014
examples :
6014
6015
- description : ' '
0 commit comments