-
Notifications
You must be signed in to change notification settings - Fork 75
/
generic-catchall.windup.xml
387 lines (387 loc) · 15.9 KB
/
generic-catchall.windup.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<?xml version="1.0"?>
<ruleset id="generic-catchall" xmlns="http://windup.jboss.org/schema/jboss-ruleset" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://windup.jboss.org/schema/jboss-ruleset http://windup.jboss.org/schema/jboss-ruleset/windup-jboss-ruleset.xsd">
<metadata>
<description>
This ruleset provides analysis of generic proprietary classes and constructs that may require individual attention when
migrating to JBoss EAP 6+.
</description>
<dependencies>
<addon id="org.jboss.windup.rules,windup-rules-javaee,2.3.0.Final" />
<addon id="org.jboss.windup.rules,windup-rules-java,2.3.0.Final" />
</dependencies>
<sourceTechnology id="java" />
<sourceTechnology id="javaee" />
<sourceTechnology id="soa" />
<targetTechnology id="eap" versionRange="[6,)" />
<phase>PostMigrationRulesPhase</phase>
<tag>reviewed-2015-09-30</tag>
</metadata>
<rules>
<rule id="generic-catchall-00000">
<when>
<javaclass references="{domain}.oswego.cs.dl.util.concurrent.{*}" />
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification title="Doug Lea Concurrency util" severity="potential">
<tag>catchall</tag>
</classification>
<hint effort="0" severity="potential" title="Doug Lea Concurrency type reference">
<message>
This is an old Doug Lea Concurrency util type and needs to be migrated to a compatible java.util.concurrent API. There is currently no detailed
information about this type.
</message>
<tag>catchall</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="domain">
<matches pattern="(edu|EDU)" />
</where>
</rule>
<rule id="generic-catchall-00001">
<when>
<javaclass references="edu.emory.mathcs.backport.java.util.{*}" />
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<hint effort="0" severity="potential" title="backport-util-concurrent type reference">
<message>
This type is the backport of java.util.concurrent API, introduced in Java 5.0 and further refined in Java 6.0, to older Java platforms.
You should use java.util.concurrent API instead.
</message>
<tag>catchall</tag>
</hint>
</perform>
</iteration>
</perform>
</rule>
<rule id="generic-catchall-00002">
<when>
<javaclass references="org.mule.{package-remainder}.{type}" />
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification title="Mule API" severity="optional">
<tag>catchall</tag>
</classification>
<hint effort="0" severity="potential" title="Mule API org.mule.{package-remainder}.{type} reference">
<message>Mule API org.mule.{package-remainder}.{type} was used. You should convert these types to Apache Camel.
</message>
<link href="http://camel.apache.org" title="Apache Camel"/>
<tag>catchall</tag>
<tag>mule</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="package-remainder">
<matches pattern="(.*)?" />
</where>
<where param="type">
<matches pattern="[^.]+" />
</where>
</rule>
<rule id="generic-catchall-00003">
<when>
<javaclass references="mx4j.{package-remainder}.{type}" />
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification title="MX4J" severity="optional" effort="0">
<tag>catchall</tag>
</classification>
<hint effort="0" severity="potential" title="MX4J type reference">
<message>MX4J mx4j.{package-remainder}.{type} reference was used.</message>
<tag>catchall</tag>
<tag>mx4j</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="package-remainder">
<matches pattern="(.*)?" />
</where>
<where param="type">
<matches pattern="[^.]+" />
</where>
</rule>
<rule id="generic-catchall-00100">
<when>
<javaclass references="org.osoa.sca.annotations.{type}" />
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification title="Apache Tuscany" severity="optional" effort="0">
<tag>catchall</tag>
</classification>
<hint effort="0" severity="potential" title="Apache Tuscany type reference">
<message>Apache Tuscany org.osoa.sca.annotations.{type} reference was used.</message>
<tag>catchall</tag>
<tag>soa</tag>
<tag>apache-tuscany</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="type">
<matches pattern="[^.]+" />
</where>
</rule>
<rule id="generic-catchall-00200">
<when>
<javaclass references="amx_.{*}">
<location>IMPORT</location>
</javaclass>
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<hint effort="0" title="Tibco ActiveMatrix Stub" severity="optional">
<message>Tibco ActiveMatrix Stub; regenerate the SOAP Client for the class</message>
<tag>tibco</tag>
<tag>soa</tag>
</hint>
</perform>
</iteration>
</perform>
</rule>
<rule id="generic-catchall-00300">
<when>
<javaclass references="com.tibco.{package-remainder}.{type}">
</javaclass>
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification effort="0" severity="optional" title="Tibco"/>
<hint effort="0" title="Tibco type reference" severity="optional">
<message>Tibco com.tibco.{package-remainder}.{type} reference found. No specific details available.</message>
<tag>catchall</tag>
<tag>tibco</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="package-remainder">
<matches pattern="(.*)?" />
</where>
<where param="type">
<matches pattern="[^.]+" />
</where>
</rule>
<rule id="generic-catchall-00400">
<when>
<javaclass references="com.crystaldecisions.{package-remainder}.{type}">
</javaclass>
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification effort="0" severity="optional" title="SAP CrystalReports"/>
<hint effort="0" title="SAP CrystalReports type reference" severity="optional">
<message>SAP CrystalReports com.crystaldecisions.{package-remainder}.{type} reference found. No specific details available.</message>
<tag>catchall</tag>
<tag>sap</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="package-remainder">
<matches pattern="(.*)?" />
</where>
<where param="type">
<matches pattern="[^.]+" />
</where>
</rule>
<rule id="generic-catchall-00500">
<when>
<javaclass references="com.iona.{package-remainder}.{type}">
</javaclass>
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification effort="0" severity="optional" title="IONA"/>
<hint effort="0" title="IONA type reference" severity="optional">
<message>IONA com.iona.{package-remainder}.{type} reference found. No specific details available.</message>
<tag>catchall</tag>
<tag>iona</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="package-remainder">
<matches pattern="(.*)?" />
</where>
<where param="type">
<matches pattern="[^.]+" />
</where>
</rule>
<rule id="generic-catchall-00600">
<when>
<javaclass references="org.apache.{subpackage}.{*}">
</javaclass>
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification effort="0" severity="optional" title="Apache org.apache.{subpackage} API"/>
<hint effort="0" title="Apache org.apache.{subpackage} type reference" severity="optional">
<message>Apache org.apache.{subpackage} API reference found. No specific details available.</message>
<tag>catchall</tag>
<tag>apache</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="subpackage">
<matches pattern="(activeio|activemq)" />
</where>
</rule>
<rule id="generic-catchall-00700">
<when>
<javaclass references="org.{subpackage}.{package-remainder}{type}"/>
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<classification effort="0" severity="optional" title="JBoss API"/>
<hint effort="0" title="org.{subpackage}.{package-remainder}{type} reference" severity="optional">
<message>org.{subpackage}.{package-remainder}{type} reference found. No specific details available.</message>
<tag>catchall</tag>
<tag>jboss</tag>
</hint>
</perform>
</iteration>
</perform>
<where param="subpackage">
<matches pattern="(jboss|jbpm)" />
</where>
<where param="package-remainder">
<matches pattern="([a-z]+\.)*" />
</where>
<where param="type">
<matches pattern="[^.()]+" />
</where>
</rule>
<!-- <rule id="generic-catchall-00800"> -->
<!-- <when> -->
<!-- <javaclass references="javax.{subpackage}.{*}"> -->
<!-- </javaclass> -->
<!-- </when> -->
<!-- <perform> -->
<!-- <iteration> -->
<!-- <when> -->
<!-- <not> -->
<!-- <has-hint /> -->
<!-- </not> -->
<!-- </when> -->
<!-- <perform> -->
<!-- <iteration> -->
<!-- <when> -->
<!-- <not> -->
<!-- <has-hint /> -->
<!-- </not> -->
<!-- </when> -->
<!-- <perform> -->
<!-- <classification effort="0" severity="optional" title="Java EE API" /> -->
<!-- <hint effort="0" title="{subpackage} type reference" severity="optional"> -->
<!-- <message>Java EE API {subpackage} type reference found. No specific details available.</message> -->
<!-- <tag>catchall</tag> -->
<!-- </hint> -->
<!-- </perform> -->
<!-- </iteration> -->
<!-- </perform> -->
<!-- </iteration> -->
<!-- </perform> -->
<!-- <where param="subpackage"> -->
<!-- <matches pattern="(management|naming|sql)" /> -->
<!-- </where> -->
<!-- </rule> -->
<rule id="generic-catchall-00900">
<when>
<javaclass references="java.sql.DriverManager">
</javaclass>
</when>
<perform>
<iteration>
<when>
<not>
<has-hint />
</not>
</when>
<perform>
<hint effort="0" title="java.sql.DriverManager type reference" severity="optional">
<message>java.sql.DriverManager type reference found. No specific details available.</message>
<tag>catchall</tag>
<tag>jdbc</tag>
</hint>
</perform>
</iteration>
</perform>
</rule>
</rules>
</ruleset>