From 1222331e45ecc24bcefd332ea66fb9025a4e1808 Mon Sep 17 00:00:00 2001 From: Juan Manuel Leflet Estrada Date: Thu, 22 Aug 2024 14:25:46 +0200 Subject: [PATCH] Translate annotation rules properly to use annotation inspection Signed-off-by: Juan Manuel Leflet Estrada --- .../34-java-generic-information.windup.yaml | 8 ++++++ ...-per-application-not-supported.windup.yaml | 4 +++ .../generated/eap7/111-hsearch.windup.yaml | 28 +++++++++++++++++++ .../generated/eap7/113-resteasy.windup.yaml | 20 +++++++++++++ .../generated/eap8/154-hibernate6.windup.yaml | 8 ++++++ ...phere-unavailable-technologies.windup.yaml | 8 ++++++ .../218-jms-to-reactive-quarkus.windup.yaml | 8 ++++++ .../34-database-technology-usage.windup.yaml | 8 ++++++ 8 files changed, 92 insertions(+) diff --git a/default/generated/camel3/34-java-generic-information.windup.yaml b/default/generated/camel3/34-java-generic-information.windup.yaml index 4fdcbc9..ea22990 100644 --- a/default/generated/camel3/34-java-generic-information.windup.yaml +++ b/default/generated/camel3/34-java-generic-information.windup.yaml @@ -735,6 +735,10 @@ java.referenced: location: ANNOTATION pattern: org.apache.camel.(Consume|EndpointInject|Produce) + annotated: + elements: + - name: uri + value: .* - category: mandatory customVariables: - name: class @@ -757,6 +761,10 @@ java.referenced: location: ANNOTATION pattern: org.apache.camel.(Consume|EndpointInject|Produce) + annotated: + elements: + - name: uri + value: .* - category: mandatory customVariables: - name: method diff --git a/default/generated/camel3/35-java-multiple-camelcontexts-per-application-not-supported.windup.yaml b/default/generated/camel3/35-java-multiple-camelcontexts-per-application-not-supported.windup.yaml index f6768e7..71fdb80 100644 --- a/default/generated/camel3/35-java-multiple-camelcontexts-per-application-not-supported.windup.yaml +++ b/default/generated/camel3/35-java-multiple-camelcontexts-per-application-not-supported.windup.yaml @@ -22,6 +22,10 @@ java.referenced: location: ANNOTATION pattern: org.apache.camel.(BeanInject|Consume|DynamicRouter|EndpointInject|Produce|PropertyInject|RecipientList|RoutingSlip) + annotated: + elements: + - name: context + value: .* - category: mandatory customVariables: - name: CdiCamelContextName diff --git a/default/generated/eap7/111-hsearch.windup.yaml b/default/generated/eap7/111-hsearch.windup.yaml index 23c54ce..f2eff00 100644 --- a/default/generated/eap7/111-hsearch.windup.yaml +++ b/default/generated/eap7/111-hsearch.windup.yaml @@ -569,6 +569,10 @@ java.referenced: location: ANNOTATION pattern: org.hibernate.search.annotations.Spatial + annotated: + elements: + - name: spatialMode + value: SpatialMode.GRID - category: optional customVariables: [] description: Hibernate Search 5 - FullTextIndexEventListener class is now final @@ -746,13 +750,33 @@ - java.referenced: location: ANNOTATION pattern: org.hibernate.search.annotations.Field + annotated: + pattern: org.hibernate.search.annotations.NumericFields + elements: + - name: index + value: Index.YES - java.referenced: location: ANNOTATION pattern: org.hibernate.search.annotations.Field + elements: + - name: index + value: Index.YES - java.referenced: pattern: java.util.(Calendar|Date) + annotated: + pattern: org.hibernate.search.annotations.Field + - java.referenced: + pattern: java.util.(Calendar|Date) + annotated: + pattern: org.hibernate.search.annotations.Fields + - java.referenced: + pattern: java.lang.(Integer|Long|Float|Double) + annotated: + pattern: org.hibernate.search.annotations.Field - java.referenced: pattern: java.lang.(Integer|Long|Float|Double) + annotated: + pattern: org.hibernate.search.annotations.Fields - category: optional customVariables: [] description: Hibernate Search 5 - Changes in indexing null values @@ -782,6 +806,10 @@ java.referenced: location: ANNOTATION pattern: org.hibernate.search.annotations.Field + annotated: + elements: + - name: indexNullAs + value: .* - category: optional customVariables: [] description: Hibernate Search 5 - Improvements in Faceting Engine diff --git a/default/generated/eap7/113-resteasy.windup.yaml b/default/generated/eap7/113-resteasy.windup.yaml index 97979ed..03f24bb 100644 --- a/default/generated/eap7/113-resteasy.windup.yaml +++ b/default/generated/eap7/113-resteasy.windup.yaml @@ -1183,6 +1183,10 @@ java.referenced: location: ANNOTATION pattern: javax.ws.rs.Produces + annotated: + elements: + - name: value + value: .*yaml - category: mandatory customVariables: [] description: Resteasy SerializableProvider is disabled by default @@ -1210,9 +1214,17 @@ - java.referenced: location: ANNOTATION pattern: javax.ws.rs.Produces + annotated: + elements: + - name: value + value: application/x-java-serialized-object - java.referenced: location: ANNOTATION pattern: javax.ws.rs.Consumes + annotated: + elements: + - name: value + value: application/x-java-serialized-object - category: optional customVariables: [] description: RESTEasy Text default charset response changed @@ -1248,6 +1260,14 @@ - java.referenced: location: ANNOTATION pattern: javax.ws.rs.Produces + annotated: + elements: + - name: value + value: application/xml{*} - java.referenced: location: ANNOTATION pattern: javax.ws.rs.Produces + annotated: + elements: + - name: value + value: text/.* diff --git a/default/generated/eap8/154-hibernate6.windup.yaml b/default/generated/eap8/154-hibernate6.windup.yaml index 1aa0a3b..24cd976 100644 --- a/default/generated/eap8/154-hibernate6.windup.yaml +++ b/default/generated/eap8/154-hibernate6.windup.yaml @@ -88,6 +88,10 @@ java.referenced: location: ANNOTATION pattern: org.hibernate.annotations.(CollectionType|ParamDef|Type) + annotated: + elements: + - name: type + value: .* - category: mandatory customVariables: [] description: Basic mappings are no longer configurable through the BasicType contract @@ -503,6 +507,10 @@ - java.referenced: location: ANNOTATION pattern: org.hibernate.annotations.NamedNativeQuery + annotated: + elements: + - name: callable + value: true - as: xmlfiles1 builtin.file: pattern: .*\.hbm\.xml diff --git a/default/generated/openliberty/208-liberty-websphere-unavailable-technologies.windup.yaml b/default/generated/openliberty/208-liberty-websphere-unavailable-technologies.windup.yaml index c6fa4c1..ce450e5 100644 --- a/default/generated/openliberty/208-liberty-websphere-unavailable-technologies.windup.yaml +++ b/default/generated/openliberty/208-liberty-websphere-unavailable-technologies.windup.yaml @@ -439,6 +439,10 @@ - java.referenced: location: ANNOTATION pattern: javax.xml.ws.BindingType + annotated: + elements: + - name: value + value: .*/soapjms(/.*)? - builtin.xml: filepaths: - .*\.(?i:wsdl) @@ -1249,6 +1253,10 @@ - java.referenced: location: ANNOTATION pattern: javax.ejb.RemoteHome + annotated: + elements: + - name: WOLAMissingClassesRule + value: com\.ibm\.websphere\.ola\.ExecuteHome - builtin.xml: filepaths: - ejb-jar.xml diff --git a/default/generated/quarkus/218-jms-to-reactive-quarkus.windup.yaml b/default/generated/quarkus/218-jms-to-reactive-quarkus.windup.yaml index 061df09..7245bb0 100644 --- a/default/generated/quarkus/218-jms-to-reactive-quarkus.windup.yaml +++ b/default/generated/quarkus/218-jms-to-reactive-quarkus.windup.yaml @@ -74,9 +74,17 @@ - java.referenced: location: ANNOTATION pattern: javax.ejb.ActivationConfigProperty + annotated: + elements: + - name: propertyName + value: destinationLookup - java.referenced: location: ANNOTATION pattern: jakarta.ejb.ActivationConfigProperty + annotated: + elements: + - name: propertyName + value: destinationLookup - category: mandatory customVariables: [] description: JMS' Queue must be replaced with an Emitter diff --git a/default/generated/technology-usage/34-database-technology-usage.windup.yaml b/default/generated/technology-usage/34-database-technology-usage.windup.yaml index ab295ed..360ca89 100644 --- a/default/generated/technology-usage/34-database-technology-usage.windup.yaml +++ b/default/generated/technology-usage/34-database-technology-usage.windup.yaml @@ -11,6 +11,10 @@ java.referenced: location: ANNOTATION pattern: javax.annotation.sql.DataSourceDefinition + annotated: + elements: + - name: transactional + value: false - customVariables: [] labels: - konveyor.io/include=always @@ -24,6 +28,10 @@ java.referenced: location: ANNOTATION pattern: javax.annotation.sql.DataSourceDefinition + annotated: + elements: + - name: transactional + value: false - customVariables: [] labels: - konveyor.io/include=always