Enforce InstanceIdentifier creation
[mdsal.git] / binding / mdsal-binding-dom-codec / src / test / java / org / opendaylight / mdsal / binding / dom / codec / impl / ExceptionReportingTest.java
index 7bfc122b8b104136b775fca8a1de6d4091a9eb77..2e0de327aacfa668dcaa36a2fb18ebc91e7ea946 100644 (file)
@@ -64,7 +64,8 @@ public class ExceptionReportingTest {
 
     @Test
     public void testBindingSkippedRoot() {
-        final var iid = InstanceIdentifier.create(TopLevelList.class);
+        @SuppressWarnings({"unchecked", "rawtypes"})
+        final var iid = InstanceIdentifier.create((Class) TopLevelList.class);
         assertThrows(IncorrectNestingException.class, () -> FULL_CODEC.toYangInstanceIdentifier(iid));
     }