Commit 8c7316f
committed
Fix warnings in build output
Add @SuppressWarnings annotations for deprecated and removal APIs across multiple modules. Update ExtendedFormEditor to use current JFaceResources API methods (destroy/create instead of destroyImage/createImage). Remove deprecated servicefactory parameter from Component annotation in test.
fix gradle-plugin warnings
fix JUnit deprecation warning
Update ArgumentsProvider to match JUnit 5.10+ API
JUnit Jupiter's ArgumentsProvider interface changed to include a ParameterDeclarations parameter in the provideArguments method. Update three test classes that implement custom argument providers to match the new signature.
try to fix maven deprecation warnings
Replace Maven @component with @Inject in Maven plugins
Update all Maven plugin mojos to use standard JSR-330 @Inject annotation instead of Maven-specific @component annotation. This removes the warnings and uses the dependency injection approach to use standard Java conventions supported by Maven 3.9+.
See https://maven.apache.org/maven-jsr330.html#how-to-use-jsr-330-in-plugins
Clean up resource management and remove unused code
Wrap P2Indexer instantiations in try-with-resources for proper cleanup, remove unused imports
Changes:
- Wrap P2Indexer objects in try-with-resources blocks to ensure cleanup
- Move AssertJ SoftAssertions imports to group with test configuration
- Remove unused imports (java.util.Map, org.apache.maven.project.MavenProjectHelper)
- Remove unused FEATURE_PATTERN constant from R5LabelFormatter
- Fix minor whitespace inconsistencies
Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>1 parent cdd3fe3 commit 8c7316f
35 files changed
Lines changed: 960 additions & 933 deletions
File tree
- biz.aQute.bndlib.tests/test/test
- component
- model
- biz.aQute.bndlib/src/aQute/bnd/build
- biz.aQute.bnd/src/aQute/bnd/main
- biz.aQute.repository
- src/aQute
- bnd/repository/maven
- pom/provider
- provider
- maven/provider
- test/aQute
- bnd/repository
- maven/provider
- p2/provider
- p2/provider
- bndtools.core/src/org/bndtools/core/ui
- resource
- bndtools.m2e/src/bndtools/m2e
- gradle-plugins/biz.aQute.bnd.gradle/src/main/java/aQute/bnd/gradle
- maven-plugins
- bnd-baseline-maven-plugin/src/main/java/aQute/bnd/maven/baseline/plugin
- bnd-export-maven-plugin/src/main/java/aQute/bnd/maven/export/plugin
- bnd-generate-maven-plugin/src/main/java/aQute/bnd/maven/generate/plugin
- bnd-indexer-maven-plugin/src/main/java/aQute/bnd/maven/indexer/plugin
- bnd-maven-plugin/src/main/java/aQute/bnd/maven/plugin
- bnd-resolver-maven-plugin/src/main/java/aQute/bnd/maven/resolver/plugin
- bnd-run-maven-plugin/src/main/java/aQute/bnd/maven/run/plugin
- bnd-testing-maven-plugin/src/main/java/aQute/bnd/maven/testing/plugin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1470 | 1470 | | |
1471 | 1471 | | |
1472 | 1472 | | |
| 1473 | + | |
1473 | 1474 | | |
1474 | 1475 | | |
1475 | 1476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
1191 | 1192 | | |
1192 | 1193 | | |
1193 | 1194 | | |
1194 | | - | |
| 1195 | + | |
| 1196 | + | |
1195 | 1197 | | |
1196 | 1198 | | |
1197 | 1199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
164 | | - | |
| 166 | + | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
175 | | - | |
| 178 | + | |
| 179 | + | |
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| 665 | + | |
665 | 666 | | |
666 | 667 | | |
667 | 668 | | |
| |||
0 commit comments