Fix a raw type suppression 21/104621/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 28 Feb 2023 13:26:25 +0000 (14:26 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 28 Feb 2023 13:26:25 +0000 (14:26 +0100)
We can operate on a simple wildcard, just to that.

Change-Id: I6eb1dadefad849b18cf84285ebf86920805cda66
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugin/yang-maven-plugin/src/test/java/org/opendaylight/yangtools/yang2sources/plugin/AbstractCodeGeneratorTest.java

index 0ae253f0b6d30837c46d430417a06745ddfe2404..cde0ee6555418987baa15944d594661fe2218d13 100644 (file)
@@ -56,10 +56,10 @@ public abstract class AbstractCodeGeneratorTest {
         }
     }
 
-    @SuppressWarnings({ "rawtypes", "checkstyle:illegalCatch" })
+    @SuppressWarnings("checkstyle:illegalCatch")
     static final void assertMojoExecution(final YangToSourcesProcessor processor, final Prepare prepare,
             final Verify verify) {
-        try (MockedStatic<ServiceLoader> staticLoader = mockStatic(ServiceLoader.class)) {
+        try (MockedStatic<?> staticLoader = mockStatic(ServiceLoader.class)) {
             final FileGenerator generator = mock(FileGenerator.class);
             doCallRealMethod().when(generator).importResolutionMode();