-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspotbugs-exclude.xml
More file actions
1239 lines (1040 loc) · 40.8 KB
/
Copy pathspotbugs-exclude.xml
File metadata and controls
1239 lines (1040 loc) · 40.8 KB
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
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<!--
SpotBugs exclusions for the Wasmtime4j project
This file defines exclusions for specific classes of issues that are:
1. False positives due to JNI/Panama native method patterns
2. Intentional design decisions for performance or compatibility
3. Generated code that cannot be modified
-->
<!-- Exclude specific packages from certain checks -->
<Match>
<Package name="ai.tegmentum.wasmtime4j.generated"/>
<!-- Generated code should not be analyzed -->
</Match>
<!-- Core API data class exclusions -->
<!-- These are immutable value/data classes that expose collections directly by design -->
<Match>
<Package name="~ai\.tegmentum\.wasmtime4j.*"/>
<Bug pattern="EI_EXPOSE_REP"/>
<!-- API data classes expose internal collections intentionally -->
</Match>
<Match>
<Package name="~ai\.tegmentum\.wasmtime4j.*"/>
<Bug pattern="EI_EXPOSE_REP2"/>
<!-- API data classes store references to external objects intentionally -->
</Match>
<!-- JNI-specific exclusions -->
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
<!-- Native fields are initialized by JNI, not in constructors -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="URF_UNREAD_FIELD"/>
<!-- JNI fields may be read by native code -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="EI_EXPOSE_REP"/>
<!-- JNI classes expose internal representation for native access -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="EI_EXPOSE_REP2"/>
<!-- JNI classes store references to external objects for native access -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="DM_CONVERT_CASE"/>
<!-- JNI code uses case conversion for type mapping and string processing -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="IMPROPER_UNICODE"/>
<!-- JNI code handles Unicode through native Wasmtime API -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="PATH_TRAVERSAL_IN"/>
<!-- WASI path operations are controlled by security layer -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
<!-- JNI anonymous classes may need instance access for native callbacks -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<!-- JNI code handles null returns from native methods defensively -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="DMI_HARDCODED_ABSOLUTE_FILENAME"/>
<!-- JNI WASI implementation may use absolute paths for filesystem operations -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/>
<!-- JNI code may ignore return values when appropriate for native patterns -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="DM_DEFAULT_ENCODING"/>
<!-- JNI code uses default encoding when interfacing with native code -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="OS_OPEN_STREAM"/>
<!-- JNI WASI code opens streams for filesystem operations -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="ODR_OPEN_DOOR_IN_FINALLY"/>
<!-- JNI error handling patterns may set flags in finally blocks -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<!-- JNI code may catch Exception for broad native error handling -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="BC_IMPOSSIBLE_INSTANCEOF"/>
<!-- JNI exception handling may use instanceof for type safety -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE"/>
<!-- JNI code casts return values from native methods appropriately -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="BC_UNCONFIRMED_CAST"/>
<!-- JNI runtime casts interface types to JNI implementations (e.g. Module to JniModule) -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="DMI_INVOKING_HASHCODE_ON_ARRAY"/>
<!-- JNI cache uses array hashcode for byte array keys (intentional) -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="WMI_WRONG_MAP_ITERATOR"/>
<!-- JNI utilities may use keySet iterator when value is not needed -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
<!-- JNI singletons may write to static fields from instance methods -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="UC_USELESS_CONDITION"/>
<!-- JNI defensive programming may include seemingly redundant conditions -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="SIO_SUPERFLUOUS_INSTANCEOF"/>
<!-- JNI lambdas may use instanceof for interface type checking -->
</Match>
<Match>
<Method name="~native.*"/>
<Bug pattern="UPM_UNCALLED_PRIVATE_METHOD"/>
<!-- Native methods are called by JNI runtime -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="UL_UNRELEASED_LOCK"/>
<!-- JNI begin/end operation pattern acquires read lock in beginOperation() and releases in endOperation() -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="CWO_CLOSED_WITHOUT_OPENED"/>
<!-- JNI lock release in endOperation() corresponds to acquire in beginOperation() -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="AT_NONATOMIC_64BIT_PRIMITIVE"/>
<!-- JNI native handle writes are protected by the operation lock -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/>
<!-- JNI configuration fields are set during initialization before concurrent access -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED"/>
<!-- JNI test CountDownLatch.await timeouts are handled by test assertions -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="UPM_UNCALLED_PRIVATE_METHOD"/>
<!-- JNI validation methods may be called conditionally or via reflection -->
</Match>
<Match>
<Class name="~.*\.jni\..*"/>
<Bug pattern="THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/>
<!-- JNI resource methods declare broad throws for native error propagation -->
</Match>
<!-- Panama FFI-specific exclusions -->
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
<!-- Panama fields may be initialized through FFI -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="URF_UNREAD_FIELD"/>
<!-- Panama fields may be read by native code through FFI -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="EI_EXPOSE_REP"/>
<!-- Panama classes expose internal representation for native access -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="EI_EXPOSE_REP2"/>
<!-- Panama classes store references to external objects for native access -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DM_CONVERT_CASE"/>
<!-- Panama code uses case conversion for type mapping and string processing -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="IMPROPER_UNICODE"/>
<!-- Panama code handles Unicode through native Wasmtime API -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="PATH_TRAVERSAL_IN"/>
<!-- WASI path operations are controlled by security layer -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
<!-- Panama anonymous classes may need instance access for native callbacks -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<!-- Panama code handles null returns from native methods defensively -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DMI_HARDCODED_ABSOLUTE_FILENAME"/>
<!-- Panama WASI implementation may use absolute paths for filesystem operations -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/>
<!-- Panama code may ignore return values when appropriate for native patterns -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DM_DEFAULT_ENCODING"/>
<!-- Panama code uses default encoding when interfacing with native code -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="OS_OPEN_STREAM"/>
<!-- Panama WASI code opens streams for filesystem operations -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="ODR_OPEN_DOOR_IN_FINALLY"/>
<!-- Panama error handling patterns may set flags in finally blocks -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<!-- Panama code may catch Exception for broad native error handling -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="BC_IMPOSSIBLE_INSTANCEOF"/>
<!-- Panama exception handling may use instanceof for type safety -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE"/>
<!-- Panama code casts return values from native methods appropriately -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DMI_INVOKING_HASHCODE_ON_ARRAY"/>
<!-- Panama cache uses array hashcode for byte array keys (intentional) -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="WMI_WRONG_MAP_ITERATOR"/>
<!-- Panama utilities may use keySet iterator when value is not needed -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD"/>
<!-- Panama singletons may write to static fields from instance methods -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="UC_USELESS_CONDITION"/>
<!-- Panama defensive programming may include seemingly redundant conditions -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="UPM_UNCALLED_PRIVATE_METHOD"/>
<!-- Private methods may be used for Panama FFI marshalling/unmarshalling -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
<!-- Panama FFI marshalling may have dead stores for type alignment -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DLS_DEAD_LOCAL_STORE_SHADOWS_FIELD"/>
<!-- Panama FFI marshalling may shadow field names for clarity -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DB_DUPLICATE_SWITCH_CLAUSES"/>
<!-- Panama error handling may have duplicate cases for error mapping -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="FORMAT_STRING_MANIPULATION"/>
<!-- Panama error handling uses controlled format strings -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="SIO_SUPERFLUOUS_INSTANCEOF"/>
<!-- Panama type checking may use instanceof for FFI safety -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="VO_VOLATILE_INCREMENT"/>
<!-- Panama thread-safe counters may use volatile increment patterns -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="UWF_NULL_FIELD"/>
<!-- Panama FFI structures may have fields that are only nulled -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
<!-- Panama defensive programming includes redundant null checks for safety -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="UCF_USELESS_CONTROL_FLOW"/>
<!-- Panama FFI code may have control flow for API completeness -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="ISC_INSTANTIATE_STATIC_CLASS"/>
<!-- Panama classes may be instantiated for native resource management -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="SING_SINGLETON_GETTER_NOT_SYNCHRONIZED"/>
<!-- Panama singletons use holder pattern for thread safety -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR"/>
<!-- Panama resource classes call virtual methods for resource type -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="ICAST_INTEGER_MULTIPLY_CAST_TO_LONG"/>
<!-- Panama FFI uses integer arithmetic for memory calculations -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
<!-- Panama FFI may return null for absent arrays -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="BC_UNCONFIRMED_CAST"/>
<!-- Panama code casts from interface types to implementation types -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="EC_UNRELATED_CLASS_AND_INTERFACE"/>
<!-- Panama equals() implementations compare interface types -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DE_MIGHT_IGNORE"/>
<!-- Panama cleanup code may ignore exceptions during resource release -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="COMMAND_INJECTION"/>
<!-- Panama WASI process operations use ProcessBuilder safely -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="DM_EXIT"/>
<!-- Panama WASI process operations may call System.exit for proc_exit -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD"/>
<!-- Panama WASI data classes have fields accessed by native code -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE"/>
<!-- Panama code may load null for defensive initialization -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="UL_UNRELEASED_LOCK"/>
<!-- Panama begin/end operation pattern acquires lock in beginOperation() and releases in endOperation() -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="CWO_CLOSED_WITHOUT_OPENED"/>
<!-- Panama lock release in endOperation() corresponds to acquire in beginOperation() -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="AT_NONATOMIC_64BIT_PRIMITIVE"/>
<!-- Panama native handle writes are protected by the operation lock -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
<!-- Panama NativeBindingsBase validates native library availability in constructor -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="MS_EXPOSE_REP"/>
<!-- Panama callback stubs are intentionally shared singleton instances -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED"/>
<!-- Panama test CountDownLatch.await timeouts are handled by test assertions -->
</Match>
<Match>
<Class name="~.*\.panama\..*"/>
<Bug pattern="THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/>
<!-- Panama resource and WASI methods declare broad throws for native error propagation -->
</Match>
<!-- Bindgen exclusions -->
<Match>
<Class name="~.*\.bindgen\..*"/>
<Bug pattern="DM_CONVERT_CASE"/>
<!-- Bindgen type mapping uses case conversion for WIT type normalization -->
</Match>
<Match>
<Class name="~.*\.bindgen\..*"/>
<Bug pattern="IMPROPER_UNICODE"/>
<!-- Bindgen type names are ASCII WIT primitives -->
</Match>
<Match>
<Class name="~.*\.bindgen\..*"/>
<Bug pattern="INFORMATION_EXPOSURE_THROUGH_AN_ERROR_MESSAGE"/>
<!-- Bindgen CLI error messages include file paths for user debugging -->
</Match>
<Match>
<Class name="~.*\.bindgen\..*"/>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<!-- Bindgen path operations handle null file names defensively -->
</Match>
<Match>
<Class name="~.*\.bindgen\..*"/>
<Bug pattern="REDOS"/>
<!-- WIT function signature regex uses possessive quantifiers to prevent backtracking -->
</Match>
<!-- Generated Maven plugin help mojo exclusions -->
<Match>
<Class name="~.*HelpMojo.*"/>
<Bug pattern="UI_INHERITANCE_UNSAFE_GETRESOURCE"/>
</Match>
<Match>
<Class name="~.*HelpMojo.*"/>
<Bug pattern="XXE_DOCUMENT"/>
<!-- Maven-generated HelpMojo reads bundled plugin descriptor XML -->
</Match>
<!-- Fuzz test exclusions - fuzzing code intentionally handles errors broadly -->
<Match>
<Class name="~.*\.fuzz\..*"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<!-- Fuzzers catch broad exceptions to continue testing -->
</Match>
<Match>
<Class name="~.*\.fuzz\..*"/>
<Bug pattern="DE_MIGHT_IGNORE"/>
<!-- Fuzzers may ignore exceptions in concurrent race condition tests -->
</Match>
<Match>
<Class name="~.*\.fuzz\..*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
<!-- Fuzzers call methods to exercise code paths without using return values -->
</Match>
<Match>
<Class name="~.*\.fuzz\..*"/>
<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
<!-- Fuzzer helpers return null to signal failure -->
</Match>
<Match>
<Class name="~.*\.fuzz\..*"/>
<Bug pattern="PREDICTABLE_RANDOM"/>
<!-- Fuzzers use java.util.Random for reproducible test inputs -->
</Match>
<Match>
<Class name="~.*\.fuzz\..*"/>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
<!-- Fuzzer code exercises API methods; unused return values are intentional -->
</Match>
<!-- Memory management exclusions for native resource handling -->
<Match>
<Class name="~.*\.memory\..*"/>
<Bug pattern="DM_GC"/>
<!-- Explicit GC calls may be necessary for native resource cleanup -->
</Match>
<Match>
<Class name="~.*Native.*"/>
<Bug pattern="DM_GC"/>
<!-- Native resource classes may need explicit GC -->
</Match>
<!-- Performance-related exclusions -->
<Match>
<Bug pattern="WMI_WRONG_MAP_ITERATOR"/>
<!-- In performance-critical code, iterator choice may be intentional -->
<Class name="~.*\.benchmarks\..*"/>
</Match>
<!-- Test-specific exclusions -->
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DM_NUMBER_CTOR"/>
<!-- Test code may use constructors for clarity -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DMI_HARDCODED_ABSOLUTE_FILENAME"/>
<!-- Tests may need hardcoded paths for test resources -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="CNT_ROUGH_CONSTANT_VALUE"/>
<!-- Test code uses specific values like 3.14 for test data -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
<!-- Test lambdas may return null for test callbacks -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DLS_DEAD_LOCAL_STORE"/>
<!-- Test variables may be unused for test structure readability -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DM_GC"/>
<!-- Some tests explicitly call GC for resource cleanup testing -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DP_DO_INSIDE_DO_PRIVILEGED"/>
<!-- Test reflection access does not need doPrivileged -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="RpC_REPEATED_CONDITIONAL_TEST"/>
<!-- Test code patterns may have repeated conditionals -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="EC_UNRELATED_TYPES"/>
<!-- Tests intentionally compare unrelated types to verify equals() -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="OBJECT_DESERIALIZATION"/>
<!-- Serialization tests use ObjectInputStream -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DMI_ANNOTATION_IS_NOT_VISIBLE_TO_REFLECTION"/>
<!-- Tests checking for annotations at runtime -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="NP_NONNULL_PARAM_VIOLATION"/>
<!-- Tests pass null to verify validation -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE"/>
<!-- Tests deliberately use known null values -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DE_MIGHT_IGNORE"/>
<!-- Test setup code may ignore exceptions -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="VA_FORMAT_STRING_USES_NEWLINE"/>
<!-- Test output formatting may use \n for cross-platform consistency -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<!-- Test code may catch Exception for comprehensive error handling -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<!-- Test code handles null returns defensively -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
<!-- Test code may include redundant null checks for robustness -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DM_CONVERT_CASE"/>
<!-- Test code may use case conversion for value validation -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="IMPROPER_UNICODE"/>
<!-- Test code may use locale-independent case conversion for testing -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="NM_CONFUSING"/>
<!-- Different test classes may have similarly named methods for consistency -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT"/>
<!-- Tests may call methods just to verify no exception is thrown -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="UC_USELESS_VOID_METHOD"/>
<!-- Test methods may appear useless but serve test structure purposes -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DM_DEFAULT_ENCODING"/>
<!-- Test code may use default encoding for test data strings -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="ICAST_INTEGER_MULTIPLY_CAST_TO_LONG"/>
<!-- Test calculations may use integer arithmetic -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="URF_UNREAD_FIELD"/>
<!-- Test mock classes may have unused fields for interface compliance -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="BC_UNCONFIRMED_CAST_OF_RETURN_VALUE"/>
<!-- Test code may use unchecked casts when verifying expected types -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="RV_EXCEPTION_NOT_THROWN"/>
<!-- Tests may create exceptions in lambdas to verify constructor validation -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="UC_USELESS_OBJECT"/>
<!-- Test code may create objects for side effects or to trigger behavior -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="UWF_NULL_FIELD"/>
<!-- Test mock objects may have null fields by design -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="UWF_UNWRITTEN_FIELD"/>
<!-- Test fields may be set via mocking, reflection, or test setup -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED_INFERRED"/>
<!-- Tests may call methods to verify behavior without using return value -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="SA_FIELD_SELF_COMPARISON"/>
<!-- Tests may compare values to themselves to verify equals implementation -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
<!-- Test fields may be initialized in @BeforeEach methods -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DM_NEXTINT_VIA_NEXTDOUBLE"/>
<!-- Test randomization patterns are acceptable -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="ICAST_IDIV_CAST_TO_DOUBLE"/>
<!-- Test calculations may use integer division -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="PREDICTABLE_RANDOM"/>
<!-- Test randomization does not need cryptographic security -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/>
<!-- Tests may ignore executor submit return values -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="INFORMATION_EXPOSURE_THROUGH_AN_ERROR_MESSAGE"/>
<!-- Tests may log error messages with detailed information -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="DCN_NULLPOINTER_EXCEPTION"/>
<!-- Tests intentionally catch NullPointerException to verify null validation -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="RV_RETURN_VALUE_IGNORED"/>
<!-- Test CountDownLatch.await timeouts are handled by test assertions -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="NP_ALWAYS_NULL"/>
<!-- Tests intentionally pass null to verify null parameter validation -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="HSC_HUGE_SHARED_STRING_CONSTANT"/>
<!-- Tests share WAT string constants for consistent WebAssembly module definitions -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="HE_HASHCODE_USE_OBJECT_EQUALS"/>
<!-- Test anonymous classes may override hashCode for verification without equals -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="COMMAND_INJECTION"/>
<!-- Test code may use ProcessBuilder for native library inspection -->
</Match>
<Match>
<Class name="~.*Test.*"/>
<Bug pattern="OS_OPEN_STREAM_EXCEPTION_PATH"/>
<!-- Test stream handling may not close on all exception paths -->
</Match>
<!-- Test suite framework exclusions -->
<Match>
<Package name="ai.tegmentum.wasmtime4j.testsuite"/>
<Bug pattern="VA_FORMAT_STRING_USES_NEWLINE"/>
<!-- Test suite output formatting uses \n for file writing -->
</Match>
<Match>
<Package name="ai.tegmentum.wasmtime4j.testsuite"/>
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE"/>
<!-- Test suite handles null returns from file operations defensively -->
</Match>
<Match>
<Package name="ai.tegmentum.wasmtime4j.testsuite"/>
<Bug pattern="DM_CONVERT_CASE"/>
<!-- Test suite uses case conversion for test categorization -->
</Match>
<Match>
<Package name="ai.tegmentum.wasmtime4j.testsuite"/>
<Bug pattern="IMPROPER_UNICODE"/>
<!-- Test suite handles test names with Unicode transformations -->
</Match>
<Match>
<Package name="ai.tegmentum.wasmtime4j.testsuite"/>
<Bug pattern="REC_CATCH_EXCEPTION"/>
<!-- Test suite may catch Exception for broad error handling -->
</Match>
<Match>
<Package name="ai.tegmentum.wasmtime4j.testsuite"/>
<Bug pattern="EI_EXPOSE_REP"/>
<!-- Test suite exposes internal representation for test inspection -->
</Match>
<Match>
<Package name="ai.tegmentum.wasmtime4j.testsuite"/>
<Bug pattern="EI_EXPOSE_REP2"/>
<!-- Test suite stores references to external objects for test tracking -->
</Match>
<Match>
<Package name="ai.tegmentum.wasmtime4j.testsuite"/>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
<!-- Test suite includes defensive null checks -->
</Match>
<!-- Exclude null pointer warnings for defensive programming -->
<Match>
<Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
<!-- Defensive null checks are intentional -->
</Match>
<!-- Security exclusions - carefully considered -->
<Match>
<Bug pattern="PATH_TRAVERSAL_IN"/>
<Class name="~.*\.tests\..*"/>
<!-- Test code may intentionally test path traversal scenarios -->
</Match>
<!-- Serialization exclusions -->
<Match>
<Bug pattern="SE_BAD_FIELD"/>
<Class name="~.*Exception.*"/>
<!-- Exception classes may have non-serializable fields by design -->
</Match>
<!-- WASM module loading exclusions -->
<Match>
<Bug pattern="COMMAND_INJECTION"/>
<Method name="~.*loadModule.*"/>
<!-- Module loading from controlled sources is intentional -->
</Match>
<!-- Resource leak exclusions for managed resources -->
<Match>
<Bug pattern="OBL_UNSATISFIED_OBLIGATION"/>
<Class name="~.*\.AutoCloseable.*"/>
<!-- AutoCloseable resources are managed by try-with-resources -->
</Match>
<!-- Suppress finalize warnings for native resource cleanup -->
<Match>
<Bug pattern="FI_FINALIZER_ONLY_NULLS_FIELDS"/>
<Class name="~.*Native.*"/>
<!-- Native resource finalizers may only null fields after cleanup -->
</Match>
<!-- Thread safety exclusions for single-threaded contexts -->
<Match>
<Bug pattern="IS2_INCONSISTENT_SYNC"/>
<Class name="~.*\.benchmarks\..*"/>
<!-- Benchmark code is typically single-threaded -->
</Match>
<!-- Method naming exclusions for JNI conventions -->
<Match>
<Bug pattern="NM_METHOD_NAMING_CONVENTION"/>
<Method name="~Java_.*"/>
<!-- JNI method names follow C naming conventions -->
</Match>