Skip to content

Commit 0522a61

Browse files
committed
Upgrade google guice version as part of Java 17 migration
1 parent 2ff26bc commit 0522a61

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/resources/META-INF/rewrite/java-version-17.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ recipeList:
4747
- org.openrewrite.java.migrate.RemovedRMIConnectorServerCredentialTypesConstant
4848
- org.openrewrite.java.migrate.RemovedFileIOFinalizeMethods
4949
- org.openrewrite.java.migrate.UpgradePluginsForJava17
50+
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
51+
groupId: com.google.inject
52+
artifactId: guice
53+
newVersion: 5.x
5054

5155
---
5256
type: specs.openrewrite.org/v1beta/recipe
@@ -155,7 +159,7 @@ type: specs.openrewrite.org/v1beta/recipe
155159
name: org.openrewrite.java.migrate.RemovedZipFinalizeMethods
156160
displayName: Replace `finalize` method in `java.util.zip.ZipFile`, `java.util.zip.Inflater` and `java.util.zip.Deflater`
157161
description: >-
158-
The `finalize` method in `java.util.zip.ZipFile` is replaced with the `close` method and is replaced by the `end` method in
162+
The `finalize` method in `java.util.zip.ZipFile` is replaced with the `close` method and is replaced by the `end` method in
159163
`java.util.zip.Inflater` and `java.util.zip.Deflater` as it is no longer available in Java SE 12 and later.
160164
tags:
161165
- java17
@@ -177,8 +181,8 @@ type: specs.openrewrite.org/v1beta/recipe
177181
name: org.openrewrite.java.migrate.RemovedSSLSessionGetPeerCertificateChainMethodImpl
178182
displayName: Replace `SSLSession.getPeerCertificateChain()` method
179183
description: >-
180-
The `javax.net.ssl.SSLSession.getPeerCertificateChain()` method implementation was removed from the SunJSSE provider and HTTP client implementation in Java SE 15.
181-
The default implementation will now throw an `UnsupportedOperationException`.
184+
The `javax.net.ssl.SSLSession.getPeerCertificateChain()` method implementation was removed from the SunJSSE provider and HTTP client implementation in Java SE 15.
185+
The default implementation will now throw an `UnsupportedOperationException`.
182186
Applications using this method should be updated to use the `javax.net.ssl.SSLSession.getPeerCertificates()` method instead.
183187
tags:
184188
- java17
@@ -272,7 +276,7 @@ type: specs.openrewrite.org/v1beta/recipe
272276
name: org.openrewrite.java.migrate.RemovedRuntimeTraceMethods
273277
displayName: Remove `Runtime.traceInstructions(boolean)` and `Runtime.traceMethodCalls` methods
274278
description: >-
275-
The `traceInstructions` and `traceMethodCalls` methods in `java.lang.Runtime` were deprecated in Java SE 9 and are no longer available in Java SE 13 and later.
279+
The `traceInstructions` and `traceMethodCalls` methods in `java.lang.Runtime` were deprecated in Java SE 9 and are no longer available in Java SE 13 and later.
276280
The recipe removes the invocations of these methods since the method invocations do nothing functionally.
277281
tags:
278282
- java17

0 commit comments

Comments
 (0)