Skip to content

Commit

Permalink
Recipe RemovedPolicy (#495)
Browse files Browse the repository at this point in the history
* Java11 Recipe RemovedPolicy

* Update src/main/resources/META-INF/rewrite/java-version-11.yml

Co-authored-by: Tim te Beek <[email protected]>

---------

Co-authored-by: bhavanapidapa <[email protected]>
Co-authored-by: Tim te Beek <[email protected]>
Co-authored-by: Chuka Obinabo <[email protected]>
Co-authored-by: Tim te Beek <[email protected]>
  • Loading branch information
5 people authored Jun 14, 2024
1 parent 422f83c commit c223f32
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main/resources/META-INF/rewrite/java-version-11.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2022 the original author or authors.
# Copyright 2024 the original author or authors.
# <p>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -66,6 +66,7 @@ recipeList:
- org.openrewrite.java.migrate.InternalBindContextFactory
- org.openrewrite.java.migrate.RemovedSecurityManagerMethods
- org.openrewrite.java.migrate.UpgradePluginsForJava11
- org.openrewrite.java.migrate.RemovedPolicy

---
type: specs.openrewrite.org/v1beta/recipe
Expand Down Expand Up @@ -236,3 +237,15 @@ recipeList:
oldFullyQualifiedTypeName: com.sun.xml.internal.bind.v2.ContextFactory
newFullyQualifiedTypeName: com.sun.xml.bind.v2.ContextFactory
ignoreDefinition: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.RemovedPolicy
displayName: Replace `javax.security.auth.Policy` with `java.security.Policy`
description: The `javax.security.auth.Policy` class is not available from Java SE 11 onwards.
tags:
- java11
recipeList:
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: javax.security.auth.Policy
newFullyQualifiedTypeName: java.security.Policy
ignoreDefinition: true

0 comments on commit c223f32

Please sign in to comment.