Skip to content

Commit

Permalink
Translate annotation rules properly to use annotation inspection
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
  • Loading branch information
jmle committed Aug 22, 2024
1 parent cac7f3e commit 1222331
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 28 additions & 0 deletions default/generated/eap7/111-hsearch.windup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions default/generated/eap7/113-resteasy.windup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/.*
8 changes: 8 additions & 0 deletions default/generated/eap8/154-hibernate6.windup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,10 @@
- java.referenced:
location: ANNOTATION
pattern: javax.xml.ws.BindingType
annotated:
elements:
- name: value
value: .*/soapjms(/.*)?
- builtin.xml:
filepaths:
- .*\.(?i:wsdl)
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1222331

Please sign in to comment.