diff --git a/resources/rulesets.yaml b/resources/rulesets.yaml
index 5312376..b9037e9 100644
--- a/resources/rulesets.yaml
+++ b/resources/rulesets.yaml
@@ -12,7 +12,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 711988128bdbdb602d9d069e08e2fb4be62af05fad433a3ca99ca954cce4945d
+ checksum: 669b6a395d0638db5a7efeebc0efddd83d9bacaeabe71e54ee27288024218228
- uuid: e92057bc-5b66-4f7d-976f-f76aa3ad50e6
name: camel3/camel2
description: Rules for changes in XML file (e.g. pom.xml) to run on Apache Camel 3
@@ -20,7 +20,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: cdd0619159876ae71394881bc4eb6949c7cac7b99c45eacdcb0445a9e04def45
+ checksum: 1afb4330407cfc125cd511bd6632fbd51c4cbbbb18ad1fb189d5b7eed90966ad
- uuid: eb900f9e-6ff3-413d-9023-167765ce1311
name: droolsjbpm
description: This ruleset provides help for migrating to a unified KIE (Knowledge Is Everything) API in the upgrade from version 5 to 6.
@@ -36,14 +36,14 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 6ca6805a0ce6e0dd9c57ea6ec75244f2052c8ff3a50416bdbbf4a1743b2e9728
+ checksum: bbcb18f37a2f537a04d458fd50652fd39c6200c5f9becd081de166ae18212659
- uuid: 1a523b92-1fb3-422b-aaf7-35f43a259fb9
name: eap7/weblogic/tests/data
directory: rulesets/eap7
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 9a119a395bf846278554527f1ae99f976b24b574276c35d0820229f1cb98d56f
+ checksum: 07b96755ed1dab1b3ad68ea91eb9c32582d82c977e3b1f502b1dd7e49bec7f94
- uuid: 3c471738-dfcf-46e8-b803-df07c304acc7
name: eap8/eap7
description: This ruleset provides analysis of Java EE applications that need to change certain CDI-related method calls.
@@ -51,7 +51,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 377291f9de5f858768d583bc3eddfcfe5d9ada155042d8b23d3bee8d57362c3b
+ checksum: f9dc9bba27a00d72054813e5afd7787873605bac0fcfb6409f84f0eb74575860
- uuid: 288037b2-279f-4d11-9ea9-f91ff274447f
name: eapxp/thorntail
description: This ruleset provides analysis of Maven built applications that use Thorntail Maven Plugin, which should be replaced by JBoss EAP XP Bootable JAR Maven Plugin, when migrating to JBoss EAP XP.
@@ -73,7 +73,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: f3e722522d3f2dd883d2513e4c6f5bec0f9e7f587bbecf9acb5433890a688520
+ checksum: 5b2fcee7c32b21067119155def960b59a954aacda835564de79abd29e6b33179
- uuid: 416ffaad-3d9b-4808-953e-623d9f2d7314
name: fuse-service-works/soa-p-5
description: This ruleset provides analysis of JBoss SOA Platform 5 applications and provides information on how to migrate these to Red Hat JBoss Fuse Service Works
@@ -97,7 +97,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 8129f6da62a61f2aee7f3f15435a8411de18cc89cefb65bcc8be0e75d12ef3ac
+ checksum: 93d1c675d3ca899a14420e412cef8a4afb418fd1b260b3f87df512eca61693f1
- uuid: e83339db-4dd8-4b06-bb31-6dfcb29c964a
name: openjdk11/openjdk8
description: This ruleset provides analysis with respect to API removals between OpenJDK 8 and 11.
@@ -105,7 +105,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 3be861f1c86482c37fe5785c63f284a2db4bc25e0bf0ab900efc0a17bd58c4f0
+ checksum: 1041ab1528cc4a8b9366b81038fb021368f7834f1d1e86531bf61030ab448de0
- uuid: c73c3986-64a5-4c2e-8149-fba57347af99
name: openjdk17/openjdk11
description: This ruleset provides analysis Security Manager classes and methods deprecated between OpenJDK 11 to 17.
@@ -113,7 +113,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 9987767a759ee2d9ccf170e5ef0de1fe33e4242fec8b43f94e76c77971bf6a9b
+ checksum: de8c2ff00050175e53a55cddb1b61fc846cc40ed563ab0382f56d0ab9281c7c9
- uuid: 53ba6b0f-ad48-4211-9673-a2065c2a4b4d
name: openliberty/websphere
description: This ruleset identifies usage of Java APIs and technologies which are not provided by Open Liberty.
@@ -121,7 +121,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: fea5a17ed496dc0420bb7663f0744593b502db308df4d41206cf7c97fac23fca
+ checksum: b25ef01d5a5b519e20612448b5c5dd49e16a470460b1dd0bba012d5b928cb3f6
- uuid: feb6648e-dd3c-4536-bf99-e40ee124653d
name: os/windows
description: This is a ruleset for Windows operating system specific rules while migrating to Linux operating system.
@@ -137,7 +137,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: dec2221e6db2b89fa7e38fc6ba6268e803dfa21e1e1a95a1a515f53c97dbfb5b
+ checksum: 2f191d559d5d962dfa587c356173da8f4668a26e43f826778807d66503510319
- uuid: 9179982c-6007-4e40-b67c-9a7272e44e87
name: rhr/springboot
description: Verify the version of the Spring Boot framework is compatible with those supported by Red Hat Runtimes
@@ -150,7 +150,7 @@ items:
name: .technology-usage
description: This ruleset provides analysis of logging libraries.
directory: rulesets/technology-usage
- checksum: 048bc1bf70a8382eb2c8d2e68421ab1ec48ca3db0f342242654a08c1f221e8e4
+ checksum: 97e2fe43bab9402f88db17984716c5bbd3b14bb7ae1e31a0899784a7d50d29cf
- uuid: 2a3357e3-c79f-4875-a869-b38cb28ac498
name: camel3
description: Rules for changes between Camel 3.0 and Camel 4.0
@@ -174,7 +174,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 08f290c85a0702d04cb5f0e93f9ab59f65875e31f75fb609b09dbbe613289173
+ checksum: 6a17cb71bba12d0ac51566b492451b046cca621a0bd42252c2826b91833524ae
- uuid: e981e01a-5722-4df0-bf01-9e0694e7bb05
name: cloud-readiness
description: This ruleset detects logging configurations that may be problematic when migrating an application to a cloud environment.
@@ -182,7 +182,7 @@ items:
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 5d5cc0c345bcfa322d5a950dab8edbc0b0c4a7e7010ec2d4b4841850d513f88c
+ checksum: 615aa5b8ba4eb8c7a6e7cfc8a6a6026e16045a86b4480e565c6834050d154313
- uuid: e7da3a17-8b21-4579-8021-375ffa53e28f
name: jakarta-ee9
directory: rulesets/jakarta-ee9
@@ -190,11 +190,11 @@ items:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
checksum: f784dd8cb1f99abf28270f0220832a0026b224b91f1d1c27f1227afd49d36266
- - uuid: eed927d0-fc63-4b64-a75c-ab0bc599c8c6
- name: dotnet8/dotnetframework45
- description: This ruleset provides analysis with respect to API changes between .NET Framework 4.5 and .NET 8.
- directory: rulesets/dotnet8
+ - uuid: 691164c7-d2dc-45d2-a23d-35ee6f8576c1
+ name: dotnet/dotnetframework
+ description: This ruleset provides analysis with respect to API changes between .NET Framework and newer versions of .NET.
+ directory: rulesets/dotnet
dependencies:
- 10667615-e067-45b4-a925-563a79ea0949
- 1b2a0eef-511c-4c07-a36a-d301b15d8207
- checksum: 8209bb37c8709ca1859aa78aab861cd868645bdfb29d2f96e034621a9078c00b
+ checksum: 7651bc29c4391898322e7d32608819df364d4570bda135b2258c56b39fb0465f
diff --git a/resources/rulesets/azure/07-eap-to-azure-appservice-certificates.windup.yaml b/resources/rulesets/azure/07-eap-to-azure-appservice-certificates.windup.yaml
index 9c5c52d..558a07b 100644
--- a/resources/rulesets/azure/07-eap-to-azure-appservice-certificates.windup.yaml
+++ b/resources/rulesets/azure/07-eap-to-azure-appservice-certificates.windup.yaml
@@ -20,7 +20,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.security.KeyStore.getInstance*
+ pattern: java.security.KeyStore.getInstance(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.security.KeyStore.load*
+ pattern: java.security.KeyStore.load(*)
diff --git a/resources/rulesets/azure/09-eap-to-azure-appservice-environment-variables.windup.yaml b/resources/rulesets/azure/09-eap-to-azure-appservice-environment-variables.windup.yaml
index 5a8c1d6..853dacb 100644
--- a/resources/rulesets/azure/09-eap-to-azure-appservice-environment-variables.windup.yaml
+++ b/resources/rulesets/azure/09-eap-to-azure-appservice-environment-variables.windup.yaml
@@ -26,7 +26,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.getenv*
+ pattern: java.lang.System.getenv(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.getProperty*
+ pattern: java.lang.System.getProperty(*)
diff --git a/resources/rulesets/azure/25-spring-boot-to-azure-system-config.windup.yaml b/resources/rulesets/azure/25-spring-boot-to-azure-system-config.windup.yaml
index 898edd0..0737d24 100644
--- a/resources/rulesets/azure/25-spring-boot-to-azure-system-config.windup.yaml
+++ b/resources/rulesets/azure/25-spring-boot-to-azure-system-config.windup.yaml
@@ -23,13 +23,13 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.getenv*
+ pattern: java.lang.System.getenv(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.getProperty*
+ pattern: java.lang.System.getProperty(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.setProperty*
+ pattern: java.lang.System.setProperty(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.setProperties*
+ pattern: java.lang.System.setProperties(*)
diff --git a/resources/rulesets/camel3/33-java-generic-information.groovy.windup.yaml b/resources/rulesets/camel3/33-java-generic-information.groovy.windup.yaml
index caec144..845b84c 100644
--- a/resources/rulesets/camel3/33-java-generic-information.groovy.windup.yaml
+++ b/resources/rulesets/camel3/33-java-generic-information.groovy.windup.yaml
@@ -35,7 +35,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.apache.camel.impl.SimpleRegistry.put*
+ pattern: org.apache.camel.impl.SimpleRegistry.put(*) # put, putIfAbsent, putAll
- category: optional
customVariables: []
description: getOut/hasOut are deprecated
@@ -101,13 +101,13 @@
pattern: org.apache.camel.CamelContext.(start|stop|suspend|resume)Route*
- java.referenced:
location: METHOD_CALL
- pattern: org.apache.camel.CamelContext.startAllRoutes*
+ pattern: org.apache.camel.CamelContext.startAllRoutes(*)
- java.referenced:
location: METHOD_CALL
- pattern: org.apache.camel.CamelContext.isStartingRoutes*
+ pattern: org.apache.camel.CamelContext.isStartingRoutes(*)
- java.referenced:
location: METHOD_CALL
- pattern: org.apache.camel.CamelContext.getRouteStatus*
+ pattern: org.apache.camel.CamelContext.getRouteStatus(*)
- category: mandatory
customVariables:
- name: param
diff --git a/resources/rulesets/cloud-readiness/69-jni-native-code.windup.yaml b/resources/rulesets/cloud-readiness/69-jni-native-code.windup.yaml
index c6b1f4a..1372fc1 100644
--- a/resources/rulesets/cloud-readiness/69-jni-native-code.windup.yaml
+++ b/resources/rulesets/cloud-readiness/69-jni-native-code.windup.yaml
@@ -27,19 +27,19 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.load*
+ pattern: java.lang.System.load(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.loadLibrary*
+ pattern: java.lang.System.loadLibrary(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.mapLibraryName*
+ pattern: java.lang.System.mapLibraryName(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.Runtime.load*
+ pattern: java.lang.Runtime.load(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.Runtime.loadLibrary*
+ pattern: java.lang.Runtime.loadLibrary(*)
- java.referenced:
location: CONSTRUCTOR_CALL
pattern: com.sun.jna*
diff --git a/resources/rulesets/cloud-readiness/70-local-storage.windup.yaml b/resources/rulesets/cloud-readiness/70-local-storage.windup.yaml
index ff5068d..34d94de 100644
--- a/resources/rulesets/cloud-readiness/70-local-storage.windup.yaml
+++ b/resources/rulesets/cloud-readiness/70-local-storage.windup.yaml
@@ -42,7 +42,7 @@
pattern: java.util.zip.ZipFile*
- java.referenced:
location: METHOD_CALL
- pattern: java.io.File.createTempFile*
+ pattern: java.io.File.createTempFile(*)
- java.referenced:
location: METHOD_CALL
pattern: java.nio.file.Paths.get*
diff --git a/resources/rulesets/cloud-readiness/74-session.windup.yaml b/resources/rulesets/cloud-readiness/74-session.windup.yaml
index 925ab1f..4b615e8 100644
--- a/resources/rulesets/cloud-readiness/74-session.windup.yaml
+++ b/resources/rulesets/cloud-readiness/74-session.windup.yaml
@@ -73,7 +73,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpSession.setAttribute*
+ pattern: javax.servlet.http.HttpSession.setAttribute(*)
- java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpSession.putValue*
+ pattern: javax.servlet.http.HttpSession.putValue(*)
diff --git a/resources/rulesets/dotnet8/example.yaml b/resources/rulesets/dotnet/example.yaml
similarity index 50%
rename from resources/rulesets/dotnet8/example.yaml
rename to resources/rulesets/dotnet/example.yaml
index f76a057..39ee04d 100644
--- a/resources/rulesets/dotnet8/example.yaml
+++ b/resources/rulesets/dotnet/example.yaml
@@ -1,14 +1,12 @@
- category: mandatory
- customVariables: []
description: MVC Method names have changed from .NET Framework
effort: 1
labels:
- konveyor.io/source=dotnetframework
- message: |-
- HttpNotFound was replaced with NotFound in .NET Core
+ - konveyor.io/target=dotnet8
+ message: HttpNotFound was replaced with NotFound in .NET Core
ruleID: removed-dotnet-framework-00000
when:
- or:
- - dotnet.referenced:
- pattern: "HttpNotFound"
- namespace: "System.Web.Mvc"
+ dotnet.referenced:
+ pattern: "HttpNotFound"
+ namespace: "System.Web.Mvc"
diff --git a/resources/rulesets/dotnet/generated.yaml b/resources/rulesets/dotnet/generated.yaml
new file mode 100644
index 0000000..5749a63
--- /dev/null
+++ b/resources/rulesets/dotnet/generated.yaml
@@ -0,0 +1,715 @@
+- ruleID: dotnet-rules-converted-00001
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Use appropriate type of files for migration from your Windows Forms-based
+ desktop app from .NET Framework to .NET Core 3.0 or later.
+ description: Use appropriate type of files for migration from your Windows Forms-based
+ desktop app from .NET Framework to .NET Core 3.0 or later.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Xrm.Tooling
+ pattern: CrmConnectControl
+- ruleID: dotnet-rules-converted-00002
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Use appropriate type of files for migration from your Windows Forms-based
+ desktop app from .NET Framework to .NET Core 3.0 or later.
+ description: Use appropriate type of files for migration from your Windows Forms-based
+ desktop app from .NET Framework to .NET Core 3.0 or later.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Xrm.Tooling.Ui
+ pattern: Styles
+- ruleID: dotnet-rules-converted-00003
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'You could use a converter to create your BitmapImage with whatever settings
+ you need which can also just return null if you see that the file doesn''t exist
+ and then just bind the Image.Source through the converter. '
+ description: 'You could use a converter to create your BitmapImage with whatever
+ settings you need which can also just return null if you see that the file doesn''t
+ exist and then just bind the Image.Source through the converter. '
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Xrm.Tooling
+ pattern: WebResourceUtility
+- ruleID: dotnet-rules-converted-00004
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The Windows Compatibility Pack may help Windows Forms app become compatible
+ with .NET Core. Update the NuGet packages used by your project
+ description: The Windows Compatibility Pack may help Windows Forms app become compatible
+ with .NET Core. Update the NuGet packages used by your project
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.IdentityModel.Clients.ActiveDirectory
+ pattern: WindowsForms
+- ruleID: dotnet-rules-converted-00005
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The Windows Compatibility Pack may help Windows Forms app become compatible
+ with .NET Core. Update the NuGet packages used by your project
+ description: The Windows Compatibility Pack may help Windows Forms app become compatible
+ with .NET Core. Update the NuGet packages used by your project
+ when:
+ dotnet.referenced:
+ namespace: IpcManagedAPI, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
+ FileVersion:1.0.2340
+ pattern: "0"
+- ruleID: dotnet-rules-converted-00006
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The Windows Compatibility Pack may help Windows Forms app become compatible
+ with .NET Core. Update the NuGet packages used by your project
+ description: The Windows Compatibility Pack may help Windows Forms app become compatible
+ with .NET Core. Update the NuGet packages used by your project
+ when:
+ dotnet.referenced:
+ namespace: IpcManagedAPI, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null,
+ FileVersion:0.0.0
+ pattern: "0"
+- ruleID: dotnet-rules-converted-00007
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: RoutedEvent is WPF-specific thing.You should remove your reference to WindowsBase
+ and stick to Winforms specific things. Also, try adding Windows.UI.Xaml namespace.
+ description: RoutedEvent is WPF-specific thing.You should remove your reference
+ to WindowsBase and stick to Winforms specific things. Also, try adding Windows.UI.Xaml
+ namespace.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: AuditEntityData
+- ruleID: dotnet-rules-converted-00008
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: RoutedEvent is WPF-specific thing.You should remove your reference to WindowsBase
+ and stick to Winforms specific things. Also, try adding Windows.UI.Xaml namespace.
+ description: RoutedEvent is WPF-specific thing.You should remove your reference
+ to WindowsBase and stick to Winforms specific things. Also, try adding Windows.UI.Xaml
+ namespace.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: BulkDeleteExported
+- ruleID: dotnet-rules-converted-00009
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: RoutedEvent is WPF-specific thing.You should remove your reference to WindowsBase
+ and stick to Winforms specific things. Also, try adding Windows.UI.Xaml namespace.
+ description: RoutedEvent is WPF-specific thing.You should remove your reference
+ to WindowsBase and stick to Winforms specific things. Also, try adding Windows.UI.Xaml
+ namespace.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: CRUDEmailAttachements
+- ruleID: dotnet-rules-converted-00010
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: RoutedEvent is WPF-specific thing.You should remove your reference to WindowsBase
+ and stick to Winforms specific things. Also, try adding Windows.UI.Xaml namespace.
+ description: RoutedEvent is WPF-specific thing.You should remove your reference
+ to WindowsBase and stick to Winforms specific things. Also, try adding Windows.UI.Xaml
+ namespace.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: DetectMultipleDuplicateRecords
+- ruleID: dotnet-rules-converted-00011
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: RoutedEvent is WPF-specific thing.You should remove your reference to WindowsBase
+ and stick to Winforms specific things. Also, try adding Windows.UI.Xaml namespace.
+ description: RoutedEvent is WPF-specific thing.You should remove your reference
+ to WindowsBase and stick to Winforms specific things. Also, try adding Windows.UI.Xaml
+ namespace.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: EarlyBoundEntityOperations
+- ruleID: dotnet-rules-converted-00012
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Check version of System.Xaml.dll used in your project and compare to the
+ .Net version of this project.It might be you are using the old version of System.Xaml.dll.
+ You can find the other dll in folder under Reference Assemblies
+ description: Check version of System.Xaml.dll used in your project and compare to
+ the .Net version of this project.It might be you are using the old version of
+ System.Xaml.dll. You can find the other dll in folder under Reference Assemblies
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Xrm.Sdk
+ pattern: Workflow
+- ruleID: dotnet-rules-converted-00013
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Manage Nuget packages for solution and install the EntityFramework '
+ description: 'Manage Nuget packages for solution and install the EntityFramework '
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: MovieApp
+- ruleID: dotnet-rules-converted-00014
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Manage Nuget packages for solution and install the EntityFramework '
+ description: 'Manage Nuget packages for solution and install the EntityFramework '
+ when:
+ dotnet.referenced:
+ namespace: System.Web
+ pattern: Mvc
+- ruleID: dotnet-rules-converted-00015
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Manage Nuget packages for solution and install the EntityFramework '
+ description: 'Manage Nuget packages for solution and install the EntityFramework '
+ when:
+ dotnet.referenced:
+ namespace: Models.MoviesDBModel.Designer
+ pattern: cs
+- ruleID: dotnet-rules-converted-00016
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Use byte [] instead of Binary. '
+ description: 'Use byte [] instead of Binary. '
+ when:
+ dotnet.referenced:
+ namespace: System.Web
+ pattern: WebPages
+- ruleID: dotnet-rules-converted-00017
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Add the NuGet package "Microsoft.Extensions.Caching.Memory". '
+ description: 'Add the NuGet package "Microsoft.Extensions.Caching.Memory". '
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Xrm.Tooling
+ pattern: Connector
+- ruleID: dotnet-rules-converted-00018
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Add the NuGet package "Microsoft.Extensions.Caching.Memory". '
+ description: 'Add the NuGet package "Microsoft.Extensions.Caching.Memory". '
+ when:
+ dotnet.referenced:
+ namespace: System.Web
+ pattern: Helpers
+- ruleID: dotnet-rules-converted-00019
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Add the NuGet package "Microsoft.Extensions.Caching.Memory". '
+ description: 'Add the NuGet package "Microsoft.Extensions.Caching.Memory". '
+ when:
+ dotnet.referenced:
+ namespace: System.Web
+ pattern: Optimization
+- ruleID: dotnet-rules-converted-00020
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Add the NuGet package "Microsoft.Extensions.Caching.Memory". '
+ description: 'Add the NuGet package "Microsoft.Extensions.Caching.Memory". '
+ when:
+ dotnet.referenced:
+ namespace: System.Web.WebPages
+ pattern: Deployment
+- ruleID: dotnet-rules-converted-00021
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: System.Web.WebPages
+ pattern: Razor
+- ruleID: dotnet-rules-converted-00022
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: System.Web.Http
+ pattern: WebHost
+- ruleID: dotnet-rules-converted-00023
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Web
+ pattern: Infrastructure
+- ruleID: dotnet-rules-converted-00024
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.(Client
+ side support is included, but there would be no server side)
+ description: The system is not mature enough to suggest recommendations as of today.(Client
+ side support is included, but there would be no server side)
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Xrm.Sdk
+ pattern: Deployment
+- ruleID: dotnet-rules-converted-00025
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'HttpApplication class has to be referenced to System.Web.HttpContext (System.Web)
+ class’s instance in its Context property. '
+ description: 'HttpApplication class has to be referenced to System.Web.HttpContext (System.Web)
+ class’s instance in its Context property. '
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: SimpleSearchMVCApp
+- ruleID: dotnet-rules-converted-00026
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Microsoft has made available the relevant assemblies as packages on NuGet
+ now. System.ServiceModel.Primitives is the base package; add the others if necessary
+ to your project.
+ description: Microsoft has made available the relevant assemblies as packages on
+ NuGet now. System.ServiceModel.Primitives is the base package; add the others
+ if necessary to your project.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Xrm
+ pattern: Sdk
+- ruleID: dotnet-rules-converted-00027
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Try installing with NuGet a port of the library called System.Drawing.Common.
+ description: Try installing with NuGet a port of the library called System.Drawing.Common.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: WebGrease
+- ruleID: dotnet-rules-converted-00028
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Newtonsoft
+ pattern: Json
+- ruleID: dotnet-rules-converted-00029
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed,
+ FileVersion:11.0.2
+ pattern: "21924"
+- ruleID: dotnet-rules-converted-00030
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Add a reference to the System.Security.Cryptography.ProtectedData NuGet
+ package.
+ description: Add a reference to the System.Security.Cryptography.ProtectedData NuGet
+ package.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.IdentityModel.Clients
+ pattern: ActiveDirectory
+- ruleID: dotnet-rules-converted-00031
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'Open up the csproj and added a reference to the required file ''System.Security.Permissions''
+ and reload the project '
+ description: 'Open up the csproj and added a reference to the required file ''System.Security.Permissions''
+ and reload the project '
+ when:
+ dotnet.referenced:
+ namespace: Antlr3
+ pattern: Runtime
+- ruleID: dotnet-rules-converted-00032
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Use configuration appropriate for your application model. For portable
+ Framework Components, expose API for configuration on type.
+ description: Use configuration appropriate for your application model. For portable
+ Framework Components, expose API for configuration on type.
+ when:
+ dotnet.referenced:
+ namespace: AzureSearch
+ pattern: SDKHowToSynonyms
+- ruleID: dotnet-rules-converted-00033
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Use configuration appropriate for your application model. For portable
+ Framework Components, expose API for configuration on type.
+ description: Use configuration appropriate for your application model. For portable
+ Framework Components, expose API for configuration on type.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: AzureSearchDotNetSample
+- ruleID: dotnet-rules-converted-00034
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Add the package Microsoft.AspNetCore.App for .net core 3 and above.
+ description: Add the package Microsoft.AspNetCore.App for .net core 3 and above.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: viewer
+- ruleID: dotnet-rules-converted-00035
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Add the package Microsoft.AspNetCore.App for .net core 3 and above.
+ description: Add the package Microsoft.AspNetCore.App for .net core 3 and above.
+ when:
+ dotnet.referenced:
+ namespace: viewer
+ pattern: Views
+- ruleID: dotnet-rules-converted-00036
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Add the package Microsoft.AspNetCore.App for .net core 3 and above.
+ description: Add the package Microsoft.AspNetCore.App for .net core 3 and above.
+ when:
+ dotnet.referenced:
+ namespace: T:Microsoft.AspNetCore.Html
+ pattern: IHtmlContent
+- ruleID: dotnet-rules-converted-00037
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: DotNetHowTo
+- ruleID: dotnet-rules-converted-00038
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: DotNetHowToEncryptionUsingCMK
+- ruleID: dotnet-rules-converted-00039
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: DotNetHowToMultipleDataSources
+- ruleID: dotnet-rules-converted-00040
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Azure.Search
+ pattern: Data
+- ruleID: dotnet-rules-converted-00041
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Azure.Search
+ pattern: Service
+- ruleID: dotnet-rules-converted-00042
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: DotNetHowToIndexers
+- ruleID: dotnet-rules-converted-00043
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Azure.Search.Data, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
+ FileVersion:5.0.0
+ pattern: "0"
+- ruleID: dotnet-rules-converted-00044
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Azure.Search.Service, Version=5.0.0.0, Culture=neutral,
+ PublicKeyToken=31bf3856ad364e35, FileVersion:5.0.0
+ pattern: "0"
+- ruleID: dotnet-rules-converted-00045
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Azure.Search.Service, Version=6.0.0.0, Culture=neutral,
+ PublicKeyToken=31bf3856ad364e35, FileVersion:6.0.0
+ pattern: "0"
+- ruleID: dotnet-rules-converted-00046
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Azure.Search.Data, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
+ FileVersion:6.0.0
+ pattern: "0"
+- ruleID: dotnet-rules-converted-00047
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: The system is not mature enough to suggest recommendations as of today.
+ description: The system is not mature enough to suggest recommendations as of today.
+ when:
+ dotnet.referenced:
+ namespace: ""
+ pattern: DotNetETagsExplainer
+- ruleID: dotnet-rules-converted-00048
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: Include necessary NuGet packages and assemblies.
+ description: Include necessary NuGet packages and assemblies.
+ when:
+ dotnet.referenced:
+ namespace: System.Web
+ pattern: Razor
+- ruleID: dotnet-rules-converted-00049
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'You could implement a custom HttpMessageHandler to pass into HttpClient
+ that supports AuthenticationLevel. To make it easier to implement, you could base
+ it off an existing HttpMessageHandler such as the Windows one '
+ description: 'You could implement a custom HttpMessageHandler to pass into HttpClient
+ that supports AuthenticationLevel. To make it easier to implement, you could base
+ it off an existing HttpMessageHandler such as the Windows one '
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Rest
+ pattern: ClientRuntime
+- ruleID: dotnet-rules-converted-00050
+ category: potential
+ effort: 1
+ labels:
+ - konveyor.io/source=dotnetframework
+ - konveyor.io/target=dotnet3
+ - konveyor.io/generated=true
+ message: 'You could implement a custom HttpMessageHandler to pass into HttpClient
+ that supports AuthenticationLevel. To make it easier to implement, you could base
+ it off an existing HttpMessageHandler such as the Windows one '
+ description: 'You could implement a custom HttpMessageHandler to pass into HttpClient
+ that supports AuthenticationLevel. To make it easier to implement, you could base
+ it off an existing HttpMessageHandler such as the Windows one '
+ when:
+ dotnet.referenced:
+ namespace: Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35,
+ FileVersion:2.3.11
+ pattern: "0"
diff --git a/resources/rulesets/dotnet8/ruleset.yaml b/resources/rulesets/dotnet/ruleset.yaml
similarity index 51%
rename from resources/rulesets/dotnet8/ruleset.yaml
rename to resources/rulesets/dotnet/ruleset.yaml
index b0ba056..c998293 100644
--- a/resources/rulesets/dotnet8/ruleset.yaml
+++ b/resources/rulesets/dotnet/ruleset.yaml
@@ -1,3 +1,3 @@
-name: dotnet8/dotnetframework45
+name: dotnet/dotnetframework
description: This ruleset provides analysis with respect to API changes between
- .NET Framework 4.5 and .NET 8.
+ .NET Framework and newer versions of .NET.
diff --git a/resources/rulesets/eap6/95-environment-dependent.windup.yaml b/resources/rulesets/eap6/95-environment-dependent.windup.yaml
index 7685d7e..1493d2e 100644
--- a/resources/rulesets/eap6/95-environment-dependent.windup.yaml
+++ b/resources/rulesets/eap6/95-environment-dependent.windup.yaml
@@ -25,7 +25,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.lang.Class.forName*
+ pattern: java.lang.Class.forName(*)
- category: mandatory
customVariables: []
description: Call of JNDI lookup
@@ -59,7 +59,7 @@
as: default
java.referenced:
location: METHOD_CALL
- pattern: javax.naming.Context.lookup*
+ pattern: javax.naming.Context.lookup(*)
- category: mandatory
customVariables: []
description: Proprietary InitialContext initialization
@@ -182,4 +182,4 @@
as: default
java.referenced:
location: METHOD_CALL
- pattern: javax.management.remote.JMXConnectorFactory.connect*
+ pattern: javax.management.remote.JMXConnectorFactory.connect(*)
diff --git a/resources/rulesets/eap7/110-hibernate4.windup.yaml b/resources/rulesets/eap7/110-hibernate4.windup.yaml
index f5af9d7..d26a988 100644
--- a/resources/rulesets/eap7/110-hibernate4.windup.yaml
+++ b/resources/rulesets/eap7/110-hibernate4.windup.yaml
@@ -23,7 +23,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addFile*
+ pattern: org.hibernate.cfg.Configuration.addFile(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.add()
@@ -49,7 +49,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.add*
+ pattern: org.hibernate.cfg.Configuration.add(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addXML()
@@ -75,7 +75,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addXML*
+ pattern: org.hibernate.cfg.Configuration.addXML(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addCacheableFile()
@@ -101,7 +101,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addCacheableFile*
+ pattern: org.hibernate.cfg.Configuration.addCacheableFile(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addURL()
@@ -127,7 +127,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addURL*
+ pattern: org.hibernate.cfg.Configuration.addURL(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addInputStream()
@@ -153,7 +153,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addInputStream*
+ pattern: org.hibernate.cfg.Configuration.addInputStream(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addResource()
@@ -179,7 +179,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addResource*
+ pattern: org.hibernate.cfg.Configuration.addResource(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addClass()
@@ -205,7 +205,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addClass*
+ pattern: org.hibernate.cfg.Configuration.addClass(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addAnnotatedClass()
@@ -231,7 +231,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addAnnotatedClass*
+ pattern: org.hibernate.cfg.Configuration.addAnnotatedClass(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addPackage()
@@ -257,7 +257,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addPackage*
+ pattern: org.hibernate.cfg.Configuration.addPackage(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addJar()
@@ -283,7 +283,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addJar*
+ pattern: org.hibernate.cfg.Configuration.addJar(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addDirectory()
@@ -309,7 +309,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addDirectory*
+ pattern: org.hibernate.cfg.Configuration.addDirectory(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.registerTypeContributor()
@@ -335,7 +335,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.registerTypeContributor*
+ pattern: org.hibernate.cfg.Configuration.registerTypeContributor(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.registerTypeOverride()
@@ -361,7 +361,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.registerTypeOverride*
+ pattern: org.hibernate.cfg.Configuration.registerTypeOverride(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setProperty()
@@ -388,7 +388,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.setProperty*
+ pattern: org.hibernate.cfg.Configuration.setProperty(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setProperties()
@@ -414,7 +414,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.setProperties*
+ pattern: org.hibernate.cfg.Configuration.setProperties(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.addProperties()
@@ -441,7 +441,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.addProperties*
+ pattern: org.hibernate.cfg.Configuration.addProperties(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setNamingStrategy()
@@ -476,7 +476,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.setNamingStrategy*
+ pattern: org.hibernate.cfg.Configuration.setNamingStrategy(*)
- category: optional
customVariables:
- name: configure
@@ -532,7 +532,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.setInterceptor*
+ pattern: org.hibernate.cfg.Configuration.setInterceptor(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setEntityNotFoundDelegate()
@@ -559,7 +559,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.setEntityNotFoundDelegate*
+ pattern: org.hibernate.cfg.Configuration.setEntityNotFoundDelegate(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setSessionFactoryObserver()
@@ -586,7 +586,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.setSessionFactoryObserver*
+ pattern: org.hibernate.cfg.Configuration.setSessionFactoryObserver(*)
- category: optional
customVariables: []
description: Hibernate 5 - Deprecated method org.hibernate.cfg.Configuration.setCurrentTenantIdentifierResolver()
@@ -613,7 +613,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.cfg.Configuration.setCurrentTenantIdentifierResolver*
+ pattern: org.hibernate.cfg.Configuration.setCurrentTenantIdentifierResolver(*)
- category: optional
customVariables:
- name: type
diff --git a/resources/rulesets/eap7/111-hsearch.windup.yaml b/resources/rulesets/eap7/111-hsearch.windup.yaml
index 5521249..23c54ce 100644
--- a/resources/rulesets/eap7/111-hsearch.windup.yaml
+++ b/resources/rulesets/eap7/111-hsearch.windup.yaml
@@ -813,10 +813,10 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.query.dsl.QueryBuilder.facet*
+ pattern: org.hibernate.search.query.dsl.QueryBuilder.facet(*)
- java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.FullTextQuery.getFacetManager*
+ pattern: org.hibernate.search.FullTextQuery.getFacetManager(*)
- java.referenced:
pattern: org.hibernate.search.query.facet.(Facet|FacetingRequest|FacetSelection|FacetSortOrder|RangeFacet)
- category: optional
@@ -965,7 +965,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.cfg.ContainedInMapping.numericField*
+ pattern: org.hibernate.search.cfg.ContainedInMapping.numericField(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method FullTextSharedSessionBuilder#autoClose
@@ -992,7 +992,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.FullTextSharedSessionBuilder.autoClose*
+ pattern: org.hibernate.search.FullTextSharedSessionBuilder.autoClose(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method IndexedMapping#cacheFromIndex
@@ -1018,7 +1018,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.cfg.IndexedMapping.cacheFromIndex*
+ pattern: org.hibernate.search.cfg.IndexedMapping.cacheFromIndex(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method EntityDescriptor#getCacheInMemory
@@ -1044,7 +1044,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.cfg.EntityDescriptor.getCacheInMemory*
+ pattern: org.hibernate.search.cfg.EntityDescriptor.getCacheInMemory(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method HSQuery#getExtendedSearchIntegrator
@@ -1070,7 +1070,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.query.engine.spi.HSQuery.getExtendedSearchIntegrator*
+ pattern: org.hibernate.search.query.engine.spi.HSQuery.getExtendedSearchIntegrator(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method DocumentBuilderIndexedEntity#getFieldCacheOption
@@ -1097,7 +1097,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.engine.spi.DocumentBuilderIndexedEntity.getFieldCacheOption*
+ pattern: org.hibernate.search.engine.spi.DocumentBuilderIndexedEntity.getFieldCacheOption(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method BuildContext#getIndexingStrategy
@@ -1122,7 +1122,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.spi.BuildContext.getIndexingStrategy*
+ pattern: org.hibernate.search.spi.BuildContext.getIndexingStrategy(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method DirectoryHelper#getVerifiedIndexDir
@@ -1148,7 +1148,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.store.spi.DirectoryHelper.getVerifiedIndexDir*
+ pattern: org.hibernate.search.store.spi.DirectoryHelper.getVerifiedIndexDir(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method EntityDescriptor#setCacheInMemory
@@ -1175,7 +1175,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.cfg.EntityDescriptor.setCacheInMemory*
+ pattern: org.hibernate.search.cfg.EntityDescriptor.setCacheInMemory(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method MassIndexer#threadsForSubsequentFetching
@@ -1202,7 +1202,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.MassIndexer.threadsForSubsequentFetching*
+ pattern: org.hibernate.search.MassIndexer.threadsForSubsequentFetching(*)
- category: optional
customVariables: []
description: Hibernate Search 5 - Deprecated method FuzzyContext#withThreshold
@@ -1228,7 +1228,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.query.dsl.FuzzyContext.withThreshold*
+ pattern: org.hibernate.search.query.dsl.FuzzyContext.withThreshold(*)
- category: optional
customVariables:
- name: type
@@ -1759,4 +1759,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.MassIndexer.threadsForIndexWriter*
+ pattern: org.hibernate.search.MassIndexer.threadsForIndexWriter(*)
diff --git a/resources/rulesets/eap7/113-resteasy.windup.yaml b/resources/rulesets/eap7/113-resteasy.windup.yaml
index 86f6e8a..97979ed 100644
--- a/resources/rulesets/eap7/113-resteasy.windup.yaml
+++ b/resources/rulesets/eap7/113-resteasy.windup.yaml
@@ -841,7 +841,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.plugins.delegates.ServerCookie.checkName*
+ pattern: org.jboss.resteasy.plugins.delegates.ServerCookie.checkName(*)
- category: optional
customVariables: []
description: Deprecated method JAXBContextWrapper#createValidator in RESTEasy 3
@@ -864,7 +864,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.plugins.providers.jaxb.JAXBContextWrapper.createValidator*
+ pattern: org.jboss.resteasy.plugins.providers.jaxb.JAXBContextWrapper.createValidator(*)
- category: optional
customVariables: []
description: Deprecated method ResteasyHttpServletResponseWrapper#encodeRedirectUrl
@@ -890,7 +890,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.encodeRedirectUrl*
+ pattern: org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.encodeRedirectUrl(*)
- category: optional
customVariables: []
description: Deprecated ResteasyHttpServletResponseWrapper#encodeUrl method
@@ -916,7 +916,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.encodeUrl*
+ pattern: org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.encodeUrl(*)
- category: optional
customVariables: []
description: Deprecated method MultipartFormDataInputImpl#getFormData in RESTEasy
@@ -943,7 +943,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInputImpl.getFormData*
+ pattern: org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInputImpl.getFormData(*)
- category: optional
customVariables: []
description: Deprecated method MultipartFormDataInput#getFormData in RESTEasy 3
@@ -969,7 +969,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput.getFormData*
+ pattern: org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput.getFormData(*)
- category: optional
customVariables: []
description: Deprecated method ResteasyHttpServletRequestWrapper.isRequestedSessionIdFromURL
@@ -996,7 +996,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.core.ResteasyHttpServletRequestWrapper.isRequestedSessionIdFromUrl*
+ pattern: org.jboss.resteasy.core.ResteasyHttpServletRequestWrapper.isRequestedSessionIdFromUrl(*)
- category: optional
customVariables: []
description: Deprecated method SecureUnmarshaller#isValidating in RESTEasy 3
@@ -1022,7 +1022,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.isValidating*
+ pattern: org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.isValidating(*)
- category: optional
customVariables: []
description: Deprecated method ServerCookie#maybeQuote in RESTEasy 3
@@ -1049,7 +1049,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.plugins.delegates.ServerCookie.maybeQuote*
+ pattern: org.jboss.resteasy.plugins.delegates.ServerCookie.maybeQuote(*)
- category: optional
customVariables: []
description: Deprecated method SecureUnmarshaller#setAdapter in RESTEasy 3
@@ -1075,7 +1075,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.setAdapter*
+ pattern: org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.setAdapter(*)
- category: optional
customVariables: []
description: Deprecated method ResteasyHttpServletResponseWrapper#setStatus in RESTEasy
@@ -1103,7 +1103,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.setStatus*
+ pattern: org.jboss.resteasy.core.ResteasyHttpServletResponseWrapper.setStatus(*)
- category: optional
customVariables: []
description: Deprecated method SecureUnmarshaller#setValidating in RESTEasy 3
@@ -1129,7 +1129,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.setValidating*
+ pattern: org.jboss.resteasy.plugins.providers.jaxb.SecureUnmarshaller.setValidating(*)
- category: optional
customVariables: []
description: Deprecated method OAuthValidator#validateMessage in RESTEasy 3
@@ -1155,7 +1155,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.jboss.resteasy.auth.oauth.OAuthValidator.validateMessage*
+ pattern: org.jboss.resteasy.auth.oauth.OAuthValidator.validateMessage(*)
- category: mandatory
customVariables: []
description: Resteasy Yaml Provider is deprecated and disabled by default
diff --git a/resources/rulesets/eap7/116-hibernate51-53.windup.yaml b/resources/rulesets/eap7/116-hibernate51-53.windup.yaml
index edd83d5..58de5fc 100644
--- a/resources/rulesets/eap7/116-hibernate51-53.windup.yaml
+++ b/resources/rulesets/eap7/116-hibernate51-53.windup.yaml
@@ -136,7 +136,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.engine.spi.SessionFactoryImplementor.getQueryCache*
+ pattern: org.hibernate.engine.spi.SessionFactoryImplementor.getQueryCache(*)
- category: mandatory
customVariables: []
description: Hibernate 5.3 - SessionFactoryImplementor.getQueryCache(String regionName)
@@ -186,7 +186,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.engine.spi.SessionFactoryImplementor.getUpdateTimestampsCache*
+ pattern: org.hibernate.engine.spi.SessionFactoryImplementor.getUpdateTimestampsCache(*)
- category: mandatory
customVariables: []
description: Hibernate 5.3 - SessionFactoryImplementor.getSecondLevelCacheRegion(String
@@ -315,7 +315,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.engine.spi.SessionFactoryImplementor.getAllSecondLevelCacheRegions*
+ pattern: org.hibernate.engine.spi.SessionFactoryImplementor.getAllSecondLevelCacheRegions(*)
- category: mandatory
customVariables:
- name: className
diff --git a/resources/rulesets/eap7/117-picketlink25.windup.yaml b/resources/rulesets/eap7/117-picketlink25.windup.yaml
index 159a5da..2c810ac 100644
--- a/resources/rulesets/eap7/117-picketlink25.windup.yaml
+++ b/resources/rulesets/eap7/117-picketlink25.windup.yaml
@@ -19,4 +19,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.picketlink.identity.federation.api.wstrust.WSTrustClient.issueToken*
+ pattern: org.picketlink.identity.federation.api.wstrust.WSTrustClient.issueToken(*)
diff --git a/resources/rulesets/eap7/135-weblogic-webservices.windup.yaml b/resources/rulesets/eap7/135-weblogic-webservices.windup.yaml
index f36ec18..124f4e3 100644
--- a/resources/rulesets/eap7/135-weblogic-webservices.windup.yaml
+++ b/resources/rulesets/eap7/135-weblogic-webservices.windup.yaml
@@ -80,7 +80,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: weblogic.wsee.connection.transport.http.HttpTransportInfo.setUsername*
+ pattern: weblogic.wsee.connection.transport.http.HttpTransportInfo.setUsername(*)
- category: mandatory
customVariables: []
description: WebLogic proprietary web services API - weblogic.wsee.context.WebServiceContext
diff --git a/resources/rulesets/eap7/137-weblogic.windup.yaml b/resources/rulesets/eap7/137-weblogic.windup.yaml
index e0e5adb..938ca39 100644
--- a/resources/rulesets/eap7/137-weblogic.windup.yaml
+++ b/resources/rulesets/eap7/137-weblogic.windup.yaml
@@ -106,16 +106,16 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.transaction.TransactionManager.resume*
+ pattern: weblogic.transaction.TransactionManager.resume(*)
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.transaction.TransactionManager.forceResume*
+ pattern: weblogic.transaction.TransactionManager.forceResume(*)
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.transaction.ClientTransactionManager.resume*
+ pattern: weblogic.transaction.ClientTransactionManager.resume(*)
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.transaction.ClientTransactionManager.forceResume*
+ pattern: weblogic.transaction.ClientTransactionManager.forceResume(*)
- category: mandatory
customVariables: []
description: WebLogic TransactionManager usage of suspend method
@@ -134,16 +134,16 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.transaction.TransactionManager.suspend*
+ pattern: weblogic.transaction.TransactionManager.suspend(*)
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.transaction.TransactionManager.forceSuspend*
+ pattern: weblogic.transaction.TransactionManager.forceSuspend(*)
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.transaction.ClientTransactionManager.suspend*
+ pattern: weblogic.transaction.ClientTransactionManager.suspend(*)
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.transaction.ClientTransactionManager.forceSuspend*
+ pattern: weblogic.transaction.ClientTransactionManager.forceSuspend(*)
- category: mandatory
customVariables: []
description: WebLogic TxHelper usage
@@ -187,8 +187,11 @@
ruleID: weblogic-eap7-08000
when:
java.referenced:
- location: METHOD_CALL
- pattern: weblogic.transaction.(Client)*TxHelper.getTransactionManager*
+ or:
+ - location: METHOD_CALL
+ pattern: weblogic.transaction.ClientTxHelper.getTransactionManager(*)
+ - location: METHOD_CALL
+ pattern: weblogic.transaction.TxHelper.getTransactionManager(*)
- category: mandatory
customVariables: []
description: WebLogic proprietary Clob JDBC object (OracleThinClob)
@@ -232,7 +235,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: weblogic.jdbc.vendor.oracle.OracleThinClob.getCharacterOutputStream*
+ pattern: weblogic.jdbc.vendor.oracle.OracleThinClob.getCharacterOutputStream(*)
- category: mandatory
customVariables: []
description: WebLogic proprietary logger (NonCatalogLogger)
@@ -262,7 +265,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: weblogic.i18n.logging.NonCatalogLogger*
+ pattern: weblogic.i18n.logging.NonCatalogLogger(*)
- java.referenced:
location: CONSTRUCTOR_CALL
pattern: weblogic.i18n.logging.NonCatalogLogger*
diff --git a/resources/rulesets/eap8/147-eap8-xml-binding.windup.yaml b/resources/rulesets/eap8/147-eap8-xml-binding.windup.yaml
index 954b7c8..d2d152a 100644
--- a/resources/rulesets/eap8/147-eap8-xml-binding.windup.yaml
+++ b/resources/rulesets/eap8/147-eap8-xml-binding.windup.yaml
@@ -47,7 +47,7 @@
as: setPropertiesMethodCalls
java.referenced:
location: METHOD_CALL
- pattern: javax.xml.bind.Marshaller.setProperty*
+ pattern: javax.xml.bind.Marshaller.setProperty(*)
- category: mandatory
customVariables: []
description: The URI in the JAXB binding file should be updated
@@ -125,7 +125,7 @@
as: instanceMethods
java.referenced:
location: METHOD_CALL
- pattern: javax.xml.bind.JAXBContext.newInstance*
+ pattern: javax.xml.bind.JAXBContext.newInstance(*)
- category: mandatory
customVariables: []
description: Usage of this Validator interface or retrieval method should be removed
@@ -153,7 +153,7 @@
pattern: javax.xml.bind.Validator
- java.referenced:
location: METHOD_CALL
- pattern: javax.xml.bind.JAXBContext.createValidator*
+ pattern: javax.xml.bind.JAXBContext.createValidator(*)
- category: potential
customVariables: []
description: Implementation or use by the application of the javax.xml.bind.Marshaller
@@ -180,7 +180,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: javax.xml.bind.Marshaller.setAdapter*
+ pattern: javax.xml.bind.Marshaller.setAdapter(*)
- category: mandatory
customVariables: []
description: Outdated JAXB dependency
@@ -231,4 +231,4 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: javax.xml.bind.Marshaller.getAdapter*
+ pattern: javax.xml.bind.Marshaller.getAdapter(*)
diff --git a/resources/rulesets/eap8/148-eap8.ejb.windup.yaml b/resources/rulesets/eap8/148-eap8.ejb.windup.yaml
index 1224fd6..82bef94 100644
--- a/resources/rulesets/eap8/148-eap8.ejb.windup.yaml
+++ b/resources/rulesets/eap8/148-eap8.ejb.windup.yaml
@@ -20,10 +20,10 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: javax.ejb.EJBContext.getCallerIdentity*
+ pattern: javax.ejb.EJBContext.getCallerIdentity(*)
- java.referenced:
location: METHOD_CALL
- pattern: javax.ejb.EJBContext.isCallerInRole*
+ pattern: javax.ejb.EJBContext.isCallerInRole(*)
- category: mandatory
customVariables: []
description: javax.ejb.EJBContext.getEnvironment() method removed
@@ -45,7 +45,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.ejb.EJBContext.getEnvironment*
+ pattern: javax.ejb.EJBContext.getEnvironment(*)
- category: mandatory
customVariables: []
description: javax.ejb.SessionContext.getMessageContext() method removed
@@ -66,4 +66,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.ejb.SessionContext.getMessageContext*
+ pattern: javax.ejb.SessionContext.getMessageContext(*)
diff --git a/resources/rulesets/eap8/151-hibernate-6.2.windup.yaml b/resources/rulesets/eap8/151-hibernate-6.2.windup.yaml
index 0aeb2df..016d41d 100644
--- a/resources/rulesets/eap8/151-hibernate-6.2.windup.yaml
+++ b/resources/rulesets/eap8/151-hibernate-6.2.windup.yaml
@@ -22,7 +22,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.persister.entity.EntityPersister.multiload*
+ pattern: org.hibernate.persister.entity.EntityPersister.multiload(*)
- category: mandatory
customVariables: []
description: Executable#afterDeserialize method has changed
@@ -47,7 +47,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.action.spi.Executable.afterDeserialize*
+ pattern: org.hibernate.action.spi.Executable.afterDeserialize(*)
- category: mandatory
customVariables: []
description: JdbcType#getJdbcRecommendedJavaTypeMapping() method has changed
@@ -70,7 +70,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.type.descriptor.jdbc.JdbcType.getJdbcRecommendedJavaTypeMapping*
+ pattern: org.hibernate.type.descriptor.jdbc.JdbcType.getJdbcRecommendedJavaTypeMapping(*)
- category: mandatory
customVariables:
- name: className
diff --git a/resources/rulesets/eap8/152-hibernate-search-6.1.windup.yaml b/resources/rulesets/eap8/152-hibernate-search-6.1.windup.yaml
index 4815507..7b5c295 100644
--- a/resources/rulesets/eap8/152-hibernate-search-6.1.windup.yaml
+++ b/resources/rulesets/eap8/152-hibernate-search-6.1.windup.yaml
@@ -183,7 +183,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.backend.elasticsearch.util.spi.URLEncodedString.fromJSon*
+ pattern: org.hibernate.search.backend.elasticsearch.util.spi.URLEncodedString.fromJSon(*)
- category: mandatory
customVariables: []
description: FieldPaths#absolutize(String, String, String) has been removed
@@ -233,7 +233,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.engine.backend.index.spi.IndexManagerImplementor.createIndexingPlan*
+ pattern: org.hibernate.search.engine.backend.index.spi.IndexManagerImplementor.createIndexingPlan(*)
- category: mandatory
customVariables: []
description: IndexIndexingPlan#executeAndReport has changed
@@ -258,7 +258,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.search.engine.backend.work.execution.spi.IndexIndexingPlan.executeAndReport*
+ pattern: org.hibernate.search.engine.backend.work.execution.spi.IndexIndexingPlan.executeAndReport(*)
- category: mandatory
customVariables: []
description: IndexSchemaObjectNodeBuilder has changed
diff --git a/resources/rulesets/eap8/154-hibernate6.windup.yaml b/resources/rulesets/eap8/154-hibernate6.windup.yaml
index 8342b25..1aa0a3b 100644
--- a/resources/rulesets/eap8/154-hibernate6.windup.yaml
+++ b/resources/rulesets/eap8/154-hibernate6.windup.yaml
@@ -248,10 +248,10 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: jakarta.persistence.Query.getResultStream*
+ pattern: jakarta.persistence.Query.getResultStream(*)
- java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.query.Query.stream*
+ pattern: org.hibernate.query.Query.stream(*)
- category: mandatory
customVariables: []
description: The signature of the Interceptor#onSave method has been changed
@@ -275,7 +275,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.Interceptor.onSave*
+ pattern: org.hibernate.Interceptor.onSave(*)
- category: mandatory
customVariables: []
description: The contents of the loader.collection package have been restructured
@@ -475,7 +475,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: org.hibernate.query.Query.iterate*
+ pattern: org.hibernate.query.Query.iterate(*)
- category: mandatory
customVariables: []
description: Using NativeQuery to call SQL functions and procedures is no longer
diff --git a/resources/rulesets/eap8/155-jakarta-cdi.windup.yaml b/resources/rulesets/eap8/155-jakarta-cdi.windup.yaml
index a3473dd..90d303b 100644
--- a/resources/rulesets/eap8/155-jakarta-cdi.windup.yaml
+++ b/resources/rulesets/eap8/155-jakarta-cdi.windup.yaml
@@ -19,7 +19,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.enterprise.inject.spi.Bean.isNullable*
+ pattern: javax.enterprise.inject.spi.Bean.isNullable(*)
- category: mandatory
customVariables: []
description: Method jakarta.enterprise.inject.spi.BeanManager.createInjectionTarget(AnnotatedType)
@@ -44,7 +44,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: jakarta.enterprise.inject.spi.BeanManager.createInjectionTarget*
+ pattern: jakarta.enterprise.inject.spi.BeanManager.createInjectionTarget(*)
- category: mandatory
customVariables: []
description: Method jakarta.enterprise.inject.spi.BeanManager.fireEvent(Object,
@@ -69,7 +69,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: jakarta.enterprise.inject.spi.BeanManager.fireEvent*
+ pattern: jakarta.enterprise.inject.spi.BeanManager.fireEvent(*)
- category: potential
customVariables: []
description: Method javax.enterprise.inject.spi.BeforeBeanDiscovery.addAnnotatedType(AnnotatedType)
@@ -92,4 +92,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.enterprise.inject.spi.BeforeBeanDiscovery.addAnnotatedType*
+ pattern: javax.enterprise.inject.spi.BeforeBeanDiscovery.addAnnotatedType(*)
diff --git a/resources/rulesets/eap8/156-jakarta-el.windup.yaml b/resources/rulesets/eap8/156-jakarta-el.windup.yaml
index 63999d2..4add4e1 100644
--- a/resources/rulesets/eap8/156-jakarta-el.windup.yaml
+++ b/resources/rulesets/eap8/156-jakarta-el.windup.yaml
@@ -16,7 +16,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.el.MethodExpression.isParmetersProvided*
+ pattern: javax.el.MethodExpression.isParmetersProvided(*)
- category: mandatory
customVariables: []
description: The incorrectly spelled jakarta.el.MethodExpression.isParmetersProvided()
@@ -35,4 +35,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: jakarta.el.MethodExpression.isParmetersProvided*
+ pattern: jakarta.el.MethodExpression.isParmetersProvided(*)
diff --git a/resources/rulesets/eap8/159-jakarta-soap.windup.yaml b/resources/rulesets/eap8/159-jakarta-soap.windup.yaml
index bc13fd5..2f04dbf 100644
--- a/resources/rulesets/eap8/159-jakarta-soap.windup.yaml
+++ b/resources/rulesets/eap8/159-jakarta-soap.windup.yaml
@@ -15,7 +15,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.xml.soap.SOAPElementFactory.newInstance*
+ pattern: javax.xml.soap.SOAPElementFactory.newInstance(*)
- category: mandatory
customVariables: []
description: javax.xml.soap.SOAPElementFactory.create() must be replaced
@@ -33,4 +33,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.xml.soap.SOAPElementFactory.create*
+ pattern: javax.xml.soap.SOAPElementFactory.create(*)
diff --git a/resources/rulesets/eap8/166-javax-to-jakarta-servlet.windup.yaml b/resources/rulesets/eap8/166-javax-to-jakarta-servlet.windup.yaml
index dd01cbe..481bd95 100644
--- a/resources/rulesets/eap8/166-javax-to-jakarta-servlet.windup.yaml
+++ b/resources/rulesets/eap8/166-javax-to-jakarta-servlet.windup.yaml
@@ -54,7 +54,7 @@
pattern: javax.servlet.http.HttpSessionContext
- java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpSession.getSessionContext*
+ pattern: javax.servlet.http.HttpSession.getSessionContext(*)
- category: mandatory
customVariables: []
description: The javax.servlet.http.HttpUtils utility class has been removed
@@ -102,7 +102,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.ServletContext.getServlet*
+ pattern: javax.servlet.ServletContext.getServlet(*)
- category: mandatory
customVariables: []
description: Method getServlets in javax.servlet.ServletContext has been removed
@@ -125,7 +125,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.ServletContext.getServlets*
+ pattern: javax.servlet.ServletContext.getServlets(*)
- category: mandatory
customVariables: []
description: Method getServletNames in javax.servlet.ServletContext has been removed
@@ -148,7 +148,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.ServletContext.getServletNames*
+ pattern: javax.servlet.ServletContext.getServletNames(*)
- category: mandatory
customVariables: []
description: Method log(Exception, String) in javax.servlet.ServletContext has been
@@ -195,7 +195,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.ServletRequest.getRealPath*
+ pattern: javax.servlet.ServletRequest.getRealPath(*)
- category: mandatory
customVariables: []
description: Method in javax.servlet.ServletRequestWrapper has been removed
@@ -239,7 +239,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.UnavailableException.getServlet*
+ pattern: javax.servlet.UnavailableException.getServlet(*)
- category: mandatory
customVariables: []
description: Constructor UnavailableException(Servlet, String) in javax.servlet.UnavailableException
@@ -287,7 +287,7 @@
when:
java.referenced:
location: CONSTRUCTOR_CALL
- pattern: javax.servlet.UnavailableException(int, javax.servlet.Servlet*
+ pattern: javax.servlet.UnavailableException(int, javax.servlet.Servlet, java.lang.String)
- category: mandatory
customVariables: []
description: Method isRequestedSessionIdFromUrl in javax.servlet.http.HttpServletRequest
@@ -311,7 +311,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl*
+ pattern: javax.servlet.http.HttpServletRequest.isRequestedSessionIdFromUrl(*)
- category: mandatory
customVariables: []
description: Method isRequestedSessionIdFromUrl in javax.servlet.http.HttpServletRequestWrapper
@@ -335,7 +335,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpServletRequestWrapper.isRequestedSessionIdFromUrl*
+ pattern: javax.servlet.http.HttpServletRequestWrapper.isRequestedSessionIdFromUrl(*)
- category: mandatory
customVariables: []
description: Method encodeUrl in javax.servlet.http.HttpServletResponse has been
@@ -496,7 +496,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpSession.getValue*
+ pattern: javax.servlet.http.HttpSession.getValue(*)
- category: mandatory
customVariables: []
description: Method getValueNames in javax.servlet.http.HttpSession has been removed
@@ -519,7 +519,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpSession.getValueNames*
+ pattern: javax.servlet.http.HttpSession.getValueNames(*)
- category: mandatory
customVariables: []
description: Method putValue in javax.servlet.http.HttpSession has been removed
@@ -542,7 +542,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpSession.putValue*
+ pattern: javax.servlet.http.HttpSession.putValue(*)
- category: mandatory
customVariables: []
description: Method removeValue in javax.servlet.http.HttpSession has been removed
@@ -565,7 +565,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.servlet.http.HttpSession.removeValue*
+ pattern: javax.servlet.http.HttpSession.removeValue(*)
- category: potential
customVariables: []
description: web.xml element references a javax-prefixed class name
diff --git a/resources/rulesets/fuse/183-sonic-esb.windup.yaml b/resources/rulesets/fuse/183-sonic-esb.windup.yaml
index cd7efb5..ddb0158 100644
--- a/resources/rulesets/fuse/183-sonic-esb.windup.yaml
+++ b/resources/rulesets/fuse/183-sonic-esb.windup.yaml
@@ -122,7 +122,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQInitContext.getParameters*
+ pattern: com.sonicsw.xq.XQInitContext.getParameters(*)
- category: mandatory
customVariables: []
description: Call of com.sonicsw.xq.XQParameters.getParameter
@@ -140,7 +140,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQParameters.getParameter*
+ pattern: com.sonicsw.xq.XQParameters.getParameter(*)
- category: mandatory
customVariables: []
description: Reference to com.sonicsw.xq.XQParameters
@@ -222,7 +222,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQMessage.getHeaderValue*
+ pattern: com.sonicsw.xq.XQMessage.getHeaderValue(*)
- category: mandatory
customVariables: []
description: Call of com.sonicsw.xq.XQMessage.setHeaderValue
@@ -239,7 +239,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQMessage.setHeaderValue*
+ pattern: com.sonicsw.xq.XQMessage.setHeaderValue(*)
- category: mandatory
customVariables: []
description: Call of com.sonicsw.xq.XQMessage.getHeaderNames
@@ -256,7 +256,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQMessage.getHeaderNames*
+ pattern: com.sonicsw.xq.XQMessage.getHeaderNames(*)
- category: mandatory
customVariables: []
description: Reference to com.sonicsw.xq.XQPart
@@ -294,7 +294,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQMessage.getPartCount*
+ pattern: com.sonicsw.xq.XQMessage.getPartCount(*)
- category: mandatory
customVariables: []
description: Call of com.sonicsw.xq.XQMessage.getPart
@@ -311,7 +311,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQMessage.getPart*
+ pattern: com.sonicsw.xq.XQMessage.getPart(*)
- category: mandatory
customVariables: []
description: Reference to com.sonicsw.xq.XQLog
@@ -377,7 +377,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQMessage.getCorrelationId*
+ pattern: com.sonicsw.xq.XQMessage.getCorrelationId(*)
- category: mandatory
customVariables: []
description: Call of com.sonicsw.xq.XQAddressFactory.createEndpointAddress
@@ -399,7 +399,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQAddressFactory.createEndpointAddress*
+ pattern: com.sonicsw.xq.XQAddressFactory.createEndpointAddress(*)
- category: mandatory
customVariables: []
description: Call of com.sonicsw.xq.XQServiceContext.addOutgoing
@@ -420,7 +420,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQServiceContext.addOutgoing*
+ pattern: com.sonicsw.xq.XQServiceContext.addOutgoing(*)
- category: mandatory
customVariables: []
description: Reference to com.sonicsw.xq.XQEnvelope
@@ -458,4 +458,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.sonicsw.xq.XQEnvelope.getMessage*
+ pattern: com.sonicsw.xq.XQEnvelope.getMessage(*)
diff --git a/resources/rulesets/openjdk11/191-java-removals.windup.yaml b/resources/rulesets/openjdk11/191-java-removals.windup.yaml
index df37470..4a57ef6 100644
--- a/resources/rulesets/openjdk11/191-java-removals.windup.yaml
+++ b/resources/rulesets/openjdk11/191-java-removals.windup.yaml
@@ -18,10 +18,10 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.Thread.stop({.+})
+ pattern: java.lang.Thread.stop(Throwable)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.Thread.destroy*
+ pattern: java.lang.Thread.destroy(*)
- category: mandatory
customVariables: []
description: sun.reflect.Reflection class was deprecated in Java 9
@@ -47,7 +47,7 @@
pattern: sun.reflect.Reflection*
- java.referenced:
location: METHOD_CALL
- pattern: sun.reflect.Reflection*
+ pattern: sun.reflect.Reflection(*)
- category: mandatory
customVariables: []
description: sun.reflect.CallerSensitive annotation was deprecated in Java 9
@@ -152,7 +152,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.lang.SecurityManager.checkMemberAccess*
+ pattern: java.lang.SecurityManager.checkMemberAccess(*)
- category: mandatory
customVariables: []
description: The java.util.logging.LogManager.addPropertyChangeListener() method
@@ -174,7 +174,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.util.logging.LogManager.addPropertyChangeListener*
+ pattern: java.util.logging.LogManager.addPropertyChangeListener(*)
- category: mandatory
customVariables: []
description: The java.util.logging.LogManager.removePropertyChangeListener() method
@@ -196,7 +196,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.util.logging.LogManager.removePropertyChangeListener*
+ pattern: java.util.logging.LogManager.removePropertyChangeListener(*)
- category: mandatory
customVariables: []
description: Property listener methods on `Pack200.Packer` and `Pack200.Unpacker`
@@ -221,16 +221,16 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.util.jar.Pack200.Packer.addPropertyChangeListener*
+ pattern: java.util.jar.Pack200.Packer.addPropertyChangeListener(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.util.jar.Pack200.Packer.removePropertyChangeListener*
+ pattern: java.util.jar.Pack200.Packer.removePropertyChangeListener(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.util.jar.Pack200.Unpacker.addPropertyChangeListener*
+ pattern: java.util.jar.Pack200.Unpacker.addPropertyChangeListener(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.util.jar.Pack200.Unpacker.removePropertyChangeListener*
+ pattern: java.util.jar.Pack200.Unpacker.removePropertyChangeListener(*)
- category: mandatory
customVariables:
- name: methodName
@@ -318,10 +318,10 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.runFinalizersOnExit*
+ pattern: java.lang.System.runFinalizersOnExit(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.Runtime.runFinalizersOnExit*
+ pattern: java.lang.Runtime.runFinalizersOnExit(*)
- category: mandatory
customVariables: []
description: The `java.awt.Font.getPeer()` and `java.awt.Component.getPeer()` methods
@@ -347,10 +347,10 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.awt.Font.getPeer*
+ pattern: java.awt.Font.getPeer(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.awt.Component.getPeer*
+ pattern: java.awt.Component.getPeer(*)
- category: potential
customVariables: []
description: Changes in ClassLoader hierarchy in JDK 11 may impact code
diff --git a/resources/rulesets/openjdk17/197-security-manager-deprecation.windup.yaml b/resources/rulesets/openjdk17/197-security-manager-deprecation.windup.yaml
index 35892af..fe85da5 100644
--- a/resources/rulesets/openjdk17/197-security-manager-deprecation.windup.yaml
+++ b/resources/rulesets/openjdk17/197-security-manager-deprecation.windup.yaml
@@ -61,7 +61,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.(getSecurityManager|setSecurityManager)*
+ pattern: java.lang.System.(getSecurityManager|setSecurityManager)(*)
- category: mandatory
customVariables: []
description: java.lang.Thread.checkAccess method has been deprecated
@@ -80,7 +80,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.lang.Thread.checkAccess*
+ pattern: java.lang.Thread.checkAccess(*)
- category: mandatory
customVariables: []
description: java.lang.ThreadGroup.checkAccess method has been deprecated
@@ -99,7 +99,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.lang.ThreadGroup.checkAccess*
+ pattern: java.lang.ThreadGroup.checkAccess(*)
- category: mandatory
customVariables: []
description: java.util.logging.LogManager.checkAccess method has been deprecated
@@ -118,7 +118,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.util.logging.LogManager.checkAccess*
+ pattern: java.util.logging.LogManager.checkAccess(*)
- category: mandatory
customVariables:
- name: methodNames
diff --git a/resources/rulesets/openjdk21/198-deprecation-openjdk18.windup.yaml b/resources/rulesets/openjdk21/198-deprecation-openjdk18.windup.yaml
index 86398f4..9b98640 100644
--- a/resources/rulesets/openjdk21/198-deprecation-openjdk18.windup.yaml
+++ b/resources/rulesets/openjdk21/198-deprecation-openjdk18.windup.yaml
@@ -14,7 +14,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: javax.security.auth.Subject.doAs*
+ pattern: javax.security.auth.Subject.doAs(*)
- category: mandatory
customVariables: []
description: Deprecated method in JDK 18 for removal in future release
@@ -31,4 +31,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.lang.Thread.stop*
+ pattern: java.lang.Thread.stop(*)
diff --git a/resources/rulesets/openjdk21/199-deprecation-openjdk19.windup.yaml b/resources/rulesets/openjdk21/199-deprecation-openjdk19.windup.yaml
index b5df864..e8a5358 100644
--- a/resources/rulesets/openjdk21/199-deprecation-openjdk19.windup.yaml
+++ b/resources/rulesets/openjdk21/199-deprecation-openjdk19.windup.yaml
@@ -25,13 +25,13 @@
pattern: javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener
- java.referenced:
location: METHOD_CALL
- pattern: javax.swing.plaf.basic.BasicDirectoryModel.intervalAdded*
+ pattern: javax.swing.plaf.basic.BasicDirectoryModel.intervalAdded(*)
- java.referenced:
location: METHOD_CALL
- pattern: javax.swing.plaf.basic.BasicDirectoryModel.intervalRemoved*
+ pattern: javax.swing.plaf.basic.BasicDirectoryModel.intervalRemoved(*)
- java.referenced:
location: METHOD_CALL
- pattern: javax.swing.plaf.basic.BasicDirectoryModel.lt*
+ pattern: javax.swing.plaf.basic.BasicDirectoryModel.lt(*)
- java.referenced:
location: METHOD_CALL
- pattern: javax.swing.plaf.basic.BasicToolBarUI.createFloatingFrame*
+ pattern: javax.swing.plaf.basic.BasicToolBarUI.createFloatingFrame(*)
diff --git a/resources/rulesets/openjdk21/203-finalization-deprecation.windup.yaml b/resources/rulesets/openjdk21/203-finalization-deprecation.windup.yaml
index 4840c5b..63436ba 100644
--- a/resources/rulesets/openjdk21/203-finalization-deprecation.windup.yaml
+++ b/resources/rulesets/openjdk21/203-finalization-deprecation.windup.yaml
@@ -42,7 +42,7 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.Runtime.runFinalization*
+ pattern: java.lang.Runtime.runFinalization(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.System.runFinalization*
+ pattern: java.lang.System.runFinalization(*)
diff --git a/resources/rulesets/openjdk21/204-removed-apis.windup.yaml b/resources/rulesets/openjdk21/204-removed-apis.windup.yaml
index f0a5bf7..422c0cc 100644
--- a/resources/rulesets/openjdk21/204-removed-apis.windup.yaml
+++ b/resources/rulesets/openjdk21/204-removed-apis.windup.yaml
@@ -14,13 +14,13 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.awt.color.ICC_Profile.finalize*
+ pattern: java.awt.color.ICC_Profile.finalize(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.awt.image.ColorModel.finalize*
+ pattern: java.awt.image.ColorModel.finalize(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.awt.image.IndexColorModel.finalize*
+ pattern: java.awt.image.IndexColorModel.finalize(*)
- category: mandatory
customVariables: []
description: Method java.lang.ThreadGroup.allowThreadSuspension() has been removed
@@ -36,7 +36,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.lang.ThreadGroup.allowThreadSuspension*
+ pattern: java.lang.ThreadGroup.allowThreadSuspension(*)
- category: mandatory
customVariables: []
description: Method java.lang.Compiler has been removed
diff --git a/resources/rulesets/openjdk21/205-utf-8-by-default.windup.yaml b/resources/rulesets/openjdk21/205-utf-8-by-default.windup.yaml
index 9000299..bd40373 100644
--- a/resources/rulesets/openjdk21/205-utf-8-by-default.windup.yaml
+++ b/resources/rulesets/openjdk21/205-utf-8-by-default.windup.yaml
@@ -60,7 +60,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.net.URLEncoder.encode*
+ pattern: java.net.URLEncoder.encode(*)
- category: potential
customVariables: []
description: The java.net.URLDecoder.decode method uses UTF-8 by default
@@ -79,4 +79,4 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: java.net.URLDecoder.decode*
+ pattern: java.net.URLDecoder.decode(*)
diff --git a/resources/rulesets/openjdk7/206-oracle2openjdk.rhamt.yaml b/resources/rulesets/openjdk7/206-oracle2openjdk.rhamt.yaml
index b1fdba5..dde2ac3 100644
--- a/resources/rulesets/openjdk7/206-oracle2openjdk.rhamt.yaml
+++ b/resources/rulesets/openjdk7/206-oracle2openjdk.rhamt.yaml
@@ -147,10 +147,10 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: java.security.KeyPairGenerator.getInstance*
+ pattern: java.security.KeyPairGenerator.getInstance(*)
- java.referenced:
location: METHOD_CALL
- pattern: javax.crypto.KeyAgreement.getInstance*
+ pattern: javax.crypto.KeyAgreement.getInstance(*)
- java.referenced:
location: CONSTRUCTOR_CALL
pattern: java.security.spec.EC*
@@ -162,7 +162,7 @@
pattern: java.security.spec.EC*
- java.referenced:
location: METHOD_CALL
- pattern: java.security.spec.EC*
+ pattern: java.security.spec.EC(*)
- java.referenced:
location: VARIABLE_DECLARATION
pattern: java.security.spec.EC*
@@ -177,7 +177,7 @@
pattern: java.security.spec.EllipticCurve*
- java.referenced:
location: METHOD_CALL
- pattern: java.security.spec.EllipticCurve*
+ pattern: java.security.spec.EllipticCurve(*)
- java.referenced:
location: VARIABLE_DECLARATION
pattern: java.security.spec.EllipticCurve*
diff --git a/resources/rulesets/openliberty/208-liberty-websphere-unavailable-technologies.windup.yaml b/resources/rulesets/openliberty/208-liberty-websphere-unavailable-technologies.windup.yaml
index 71ceab3..c6fa4c1 100644
--- a/resources/rulesets/openliberty/208-liberty-websphere-unavailable-technologies.windup.yaml
+++ b/resources/rulesets/openliberty/208-liberty-websphere-unavailable-technologies.windup.yaml
@@ -407,10 +407,10 @@
or:
- java.referenced:
location: METHOD_CALL
- pattern: com.ibm.websphere.management.AdminService.getProcessName*
+ pattern: com.ibm.websphere.management.AdminService.getProcessName(*)
- java.referenced:
location: METHOD_CALL
- pattern: com.ibm.ejs.ras.RasHelper.getServerName*
+ pattern: com.ibm.ejs.ras.RasHelper.getServerName(*)
- java.referenced:
location: METHOD_CALL
pattern: com.ibm.websphere.runtime.ServerName.(getDisplayName|getFullName)*
@@ -1065,7 +1065,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.ibm.websphere.security.WSSecurityHelper.(getFirstCaller|getFirstServer|getCallerList|getServerList|getPropagationAttributes|addPropagationAttribute|convertCookieStringToBytes|revokeSSOCookiesForPortlets)*
+ pattern: com.ibm.websphere.security.WSSecurityHelper.(getFirstCaller|getFirstServer|getCallerList|getServerList|getPropagationAttributes|addPropagationAttribute|convertCookieStringToBytes|revokeSSOCookiesForPortlets)(*)
- category: mandatory
customVariables: []
description: The WebSphere Remote Request Dispatcher (RRD) SPIs are unavailable
@@ -1134,7 +1134,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.ibm.websphere.security.WSSecurityHelper.revokeSSOCookies*
+ pattern: com.ibm.websphere.security.WSSecurityHelper.revokeSSOCookies(*)
- category: mandatory
customVariables: []
description: Do not use the WSSecurityHelper getLTPACookieFromSSOToken method
@@ -1186,7 +1186,7 @@
when:
java.referenced:
location: METHOD_CALL
- pattern: com.ibm.websphere.security.WSSecurityHelper.getLTPACookieFromSSOToken*
+ pattern: com.ibm.websphere.security.WSSecurityHelper.getLTPACookieFromSSOToken(*)
- category: optional
customVariables: []
description: Some WebSphere z/OS Optimized Local Adapters APIs are unavailable
diff --git a/resources/rulesets/quarkus/200-ee-to-quarkus.windup.yaml b/resources/rulesets/quarkus/200-ee-to-quarkus.windup.yaml
new file mode 100644
index 0000000..de9e1da
--- /dev/null
+++ b/resources/rulesets/quarkus/200-ee-to-quarkus.windup.yaml
@@ -0,0 +1,74 @@
+- category: potential
+ customVariables: []
+ description: '@Stateless annotation must be replaced'
+ effort: 1
+ labels:
+ - konveyor.io/source=java-ee
+ - konveyor.io/source=jakarta-ee
+ - konveyor.io/target=quarkus
+ links:
+ - title: Quarkus CDI reference
+ url: https://quarkus.io/guides/cdi-reference
+ message: Stateless EJBs can be converted to a CDI bean by replacing the `@Stateless`
+ annotation with a scope eg `@ApplicationScoped`
+ ruleID: ee-to-quarkus-00000
+ when:
+ or:
+ - java.referenced:
+ location: ANNOTATION
+ pattern: javax.ejb.Stateless
+ - java.referenced:
+ location: ANNOTATION
+ pattern: jakarta.ejb.Stateless
+- category: mandatory
+ customVariables: []
+ description: '@Stateful annotation must be replaced'
+ effort: 3
+ labels:
+ - konveyor.io/source=java-ee
+ - konveyor.io/source=jakarta-ee
+ - konveyor.io/target=quarkus
+ links:
+ - title: Quarkus CDI reference
+ url: https://quarkus.io/guides/cdi-reference
+ message: |-
+ Stateful EJBs can be converted to a CDI bean by replacing the `@Stateful` annotation with a bean-defining annotation
+ that encompasses the appropriate scope (e.g., `@ApplicationScoped`). `@Stateful` EJBs often translate to `@SessionScoped`
+ beans (a scope which requires activating the `quarkus-undertow` extension), but the appropriate scope may differ based
+ on your application architecture. Review your application's requirements to determine the appropriate scope.
+
+ Note that it is recommended, as a good practice, to keep state external from the service in Quarkus.
+ ruleID: ee-to-quarkus-00010
+ when:
+ or:
+ - java.referenced:
+ location: ANNOTATION
+ pattern: javax.ejb.Stateful
+ - java.referenced:
+ location: ANNOTATION
+ pattern: jakarta.ejb.Stateful
+- category: mandatory
+ customVariables: []
+ description: Method should be marked as @Transactional
+ effort: 3
+ labels:
+ - konveyor.io/source=java-ee
+ - konveyor.io/source=jakarta-ee
+ - konveyor.io/target=quarkus
+ links:
+ - title: Quarkus CDI reference
+ url: https://quarkus.io/guides/cdi-reference
+ message: |-
+ Any EJB method has container-manager transactions by default, with transaction attribute
+ `REQUIRED` as a default (a transaction is started if one is not already in progress). Methods that were part of
+ an EJB bean to be migrated to CDI must be annotated with `@Transactional`, or be marked as transactional
+ in any other way (i.e, by annotating the class).
+ ruleID: ee-to-quarkus-00020
+ when:
+ or:
+ - java.referenced:
+ location: ANNOTATION
+ pattern: javax.ejb*
+ - java.referenced:
+ location: ANNOTATION
+ pattern: jakarta.ejb*
diff --git a/resources/rulesets/quarkus/201-persistence-to-quarkus.windup.yaml b/resources/rulesets/quarkus/201-persistence-to-quarkus.windup.yaml
new file mode 100644
index 0000000..c98641e
--- /dev/null
+++ b/resources/rulesets/quarkus/201-persistence-to-quarkus.windup.yaml
@@ -0,0 +1,83 @@
+- category: optional
+ customVariables: []
+ description: Move persistence config to a properties file
+ effort: 1
+ labels:
+ - konveyor.io/source=java-ee
+ - konveyor.io/source=jakarta-ee
+ - konveyor.io/target=quarkus
+ links:
+ - title: Using Hibernate ORM and Jakarta persistence
+ url: https://quarkus.io/guides/hibernate-orm#persistence-xml
+ message: "It is recommended to move persistence related configuration from an XML
+ file to a properties one.\n This allows centralization of the configuration in
+ Quarkus. Check the link for more information.\n \n \n Datasource and persistence
+ configurations in XML can be substituted with a single centralized properties
+ file. Here is an example of a translation:\n \n The following datasource configuration:\n
+ ```\n \n
+ \n \n
+ jdbc:h2:mem:tasks-jsf-quickstart;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1\n
+ h2\n \n sa\n sa\n
+ \n \n \n ```\n along with the following
+ persistence configuration:\n ```\n \n
+ \n \n \n java:jboss/datasources/TasksJsfQuickstartDS\n
+ \n \n \n \n \n \n \n ```\n can be translated
+ to:\n ```\n quarkus.datasource.jdbc.url=jdbc:h2:mem:tasks-jsf-quickstart;DB_CLOSE_ON_EXIT=FALSE;DB_CLOSE_DELAY=-1\n
+ quarkus.datasource.db-kind=h2\n quarkus.datasource.username=sa\n quarkus.datasource.password=sa\n\n
+ quarkus.hibernate-orm.database.generation=drop-and-create\n ```"
+ ruleID: persistence-to-quarkus-00000
+ when:
+ or:
+ - builtin.file:
+ pattern: persistence\.xml
+ - builtin.file:
+ pattern: .*-ds\.xml
+- category: potential
+ customVariables: []
+ description: '@Produces cannot annotate an EntityManager'
+ effort: 1
+ labels:
+ - konveyor.io/source=java-ee
+ - konveyor.io/source=jakarta-ee
+ - konveyor.io/target=quarkus
+ links:
+ - title: Using Hibernate ORM and Jakarta persistence
+ url: https://quarkus.io/guides/hibernate-orm#persistence-xml
+ - title: Setting up and configuring Hibernate ORM
+ url: https://quarkus.io/guides/hibernate-orm#setting-up-and-configuring-hibernate-orm
+ message: "In JavaEE/JakartaEE, using `@PersistenceContext` was needed in order to
+ inject a data source. Quarkus, on the other hand,\n will create the bean automatically
+ just by correctly setting up your datasource, so the `@PersistenceContext` annotation can be removed. \nThis also makes having a `@Produces`
+ annotation\n on the `EntityManager` illegal in Quarkus.\n \n If you are using
+ a `@Produces` annotation for your EntityManager, and it is not needed after configuring
+ your datasource, remove it and `@Inject` the EntityManager.\n Otherwise, if the
+ producer is still needed, please create a qualification for your produced `EntityManager`,
+ as well as every injection point for the EM.\n \n For instance, you can create
+ an `ExtendedContext` qualifier:\n ```\n @Qualifier\n @Target({{ ElementType.TYPE,
+ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER }})\n @Retention(RetentionPolicy.RUNTIME)\n
+ public @interface ExtendedContext {{ ... }}\n ```\n and then inject your entity
+ managers:\n ```\n @ExtendedContext\n public EntityManager getEm() {{\n return
+ em;\n }}\n ```"
+ ruleID: persistence-to-quarkus-00011
+ when:
+ and:
+ - java.referenced:
+ location: IMPORT
+ pattern: javax.enterprise.inject.Produces
+ as: file
+ ignore: true
+ - java.referenced:
+ location: IMPORT
+ pattern: javax.persistence.EntityManager
+ from: file
diff --git a/resources/rulesets/quarkus/202-remote-ejb-to-quarkus.windup.yaml b/resources/rulesets/quarkus/202-remote-ejb-to-quarkus.windup.yaml
new file mode 100644
index 0000000..543ba61
--- /dev/null
+++ b/resources/rulesets/quarkus/202-remote-ejb-to-quarkus.windup.yaml
@@ -0,0 +1,29 @@
+- category: mandatory
+ customVariables: []
+ description: Remote EJBs are not supported in Quarkus
+ effort: 1
+ labels:
+ - konveyor.io/source=java-ee
+ - konveyor.io/source=jakarta-ee
+ - konveyor.io/target=quarkus
+ message: |-
+ Remote EJBs are not supported in Quarkus, and therefore its use must be removed and replaced with REST functionality. In order to do this:
+ 1. Replace the `@Remote` annotation on the class with a `@jakarta.ws.rs.Path("")` annotation. An endpoint must be added to the annotation in place of `` to specify the actual path to the REST service.
+ 2. Remove `@Stateless` annotations if present. Given that REST services are stateless by nature, it makes it unnecessary.
+ 3. For every public method on the EJB being converted, do the following:
+ - In case the method has no input parameters, annotate the method with `@jakarta.ws.rs.GET`; otherwise annotate it with `@jakarta.ws.rs.POST` instead.
+ - Annotate the method with `@jakarta.ws.rs.Path("")` and give it a proper endpoint path. As a rule of thumb, the method name can be used as endpoint, for instance:
+ ```
+ @Path("/increment")
+ public void increment() {{ ... }}
+ ```
+ - Add `@jakarta.ws.rs.QueryParam("")` to any method parameters if needed, where `` is a name for the parameter.
+ ruleID: remote-ejb-to-quarkus-00000
+ when:
+ or:
+ - java.referenced:
+ location: ANNOTATION
+ pattern: javax.ejb.Remote
+ - java.referenced:
+ location: ANNOTATION
+ pattern: jakarta.ejb.Remote
diff --git a/resources/rulesets/quarkus/210-cdi-to-quarkus.windup.yaml b/resources/rulesets/quarkus/210-cdi-to-quarkus.windup.yaml
index 3ae168d..ed27045 100644
--- a/resources/rulesets/quarkus/210-cdi-to-quarkus.windup.yaml
+++ b/resources/rulesets/quarkus/210-cdi-to-quarkus.windup.yaml
@@ -80,20 +80,3 @@
java.referenced:
location: ANNOTATION
pattern: javax.enterprise.inject.Produces
-- category: potential
- customVariables: []
- description: Stateless annotation can be replaced with scope
- effort: 1
- labels:
- - konveyor.io/source=java-ee
- - konveyor.io/target=quarkus
- links:
- - title: Quarkus CDI reference
- url: https://quarkus.io/guides/cdi-reference
- message: Stateless EJBs can be converted to a cdi bean by replacing the `@Stateless`
- annotation with a scope eg `@ApplicationScoped`
- ruleID: cdi-to-quarkus-00050
- when:
- java.referenced:
- location: ANNOTATION
- pattern: javax.ejb.Stateless
diff --git a/resources/rulesets/technology-usage/36-connect-technology-usage.windup.yaml b/resources/rulesets/technology-usage/36-connect-technology-usage.windup.yaml
index a9c96bb..3d5e5c9 100644
--- a/resources/rulesets/technology-usage/36-connect-technology-usage.windup.yaml
+++ b/resources/rulesets/technology-usage/36-connect-technology-usage.windup.yaml
@@ -31,10 +31,10 @@
pattern: java.lang.System.(load|loadLibrary|mapLibraryName)*
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.Runtime.load*
+ pattern: java.lang.Runtime.load(*)
- java.referenced:
location: METHOD_CALL
- pattern: java.lang.Runtime.loadLibrary*
+ pattern: java.lang.Runtime.loadLibrary(*)
- customVariables: []
description: JNA usage
labels:
@@ -59,7 +59,7 @@
pattern: com.sun.jna*
- java.referenced:
location: METHOD_CALL
- pattern: com.sun.jna*
+ pattern: com.sun.jna(*)
- java.referenced:
location: VARIABLE_DECLARATION
pattern: com.sun.jna*