@@ -86,6 +86,7 @@ static Stream<Arguments> constructorParsing() throws IOException {
86
86
"test-suite-data.json" , "custom-suite.json" , "string-constructor-only.json" );
87
87
}
88
88
89
+ @ SuppressWarnings ({"ConstantConditions" , "unused" })
89
90
@ DisplayName ("Test constructor parsing" )
90
91
@ ParameterizedTest (name = "{0}: ''{1}''" )
91
92
@ MethodSource
@@ -113,6 +114,7 @@ static Stream<Arguments> constructorParameters() throws IOException {
113
114
"test-suite-data.json" , "custom-suite.json" , "components-constructor-only.json" );
114
115
}
115
116
117
+ @ SuppressWarnings ({"ConstantConditions" , "unused" })
116
118
@ DisplayName ("Test constructor parameters" )
117
119
@ ParameterizedTest (name = "{0}: {2}" )
118
120
@ MethodSource
@@ -151,6 +153,7 @@ static Stream<Arguments> constructorTypeNameSpace() throws IOException {
151
153
return PurlParameters .getTestDataFromFiles ("type-namespace-constructor-only.json" );
152
154
}
153
155
156
+ @ SuppressWarnings ({"ConstantConditions" , "unused" })
154
157
@ ParameterizedTest
155
158
@ MethodSource
156
159
void constructorTypeNameSpace (
@@ -195,6 +198,7 @@ private static Class<? extends Exception> getExpectedException(@Nullable String
195
198
return value == null || value .isEmpty () ? null : value ;
196
199
}
197
200
201
+ @ SuppressWarnings ("java:S5961" )
198
202
@ Test
199
203
void standardTypes () {
200
204
assertEquals ("alpm" , PackageURL .StandardTypes .ALPM );
0 commit comments