Binding codec v2 - cast case type to get serializer
[mdsal.git] / dom / mdsal-dom-broker / src / test / java / org / opendaylight / mdsal / dom / broker / osgi / SchemaServiceActivatorTest.java
index a0751b60bccc83990f50802b1763c15e90b54773..33ac7641ae71018201327ce473eabc170c2683a3 100644 (file)
@@ -42,7 +42,7 @@ public class SchemaServiceActivatorTest {
         final SchemaServiceActivator schemaServiceActivator = new SchemaServiceActivator();
         schemaServiceActivator.start(bundleContext);
 
-        final ServiceRegistration registration = mock(ServiceRegistration.class);
+        final ServiceRegistration<?> registration = mock(ServiceRegistration.class);
         final OsgiBundleScanningSchemaService osgiBundle =
                 mock(OsgiBundleScanningSchemaService.class, CALLS_REAL_METHODS);
 
@@ -62,6 +62,7 @@ public class SchemaServiceActivatorTest {
         verify(osgiBundle).close();
     }
 
+    @SuppressWarnings("checkstyle:IllegalCatch")
     @After
     @Before
     public void destroyInstance() throws Exception {