Fix DataValidationFailedExceptionTest warnings 61/75161/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 13 Aug 2018 08:32:06 +0000 (10:32 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 13 Aug 2018 11:00:16 +0000 (13:00 +0200)
Type safety here is easily fixed.

Change-Id: I06b558ab90635c5b95e9ad306edc31ee1c7335fe
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/mdsal-common-api/src/test/java/org/opendaylight/mdsal/common/api/DataValidationFailedExceptionTest.java

index cd2380299545205cb10a63a06f6e20bab6a36c95..fcff681a3ab291be83f62f0694b01f4e15eeb401 100644 (file)
@@ -27,9 +27,9 @@ public class DataValidationFailedExceptionTest {
         throw dataValidationFailedException;
     }
 
-    private final class TestClass implements Path {
+    private final class TestClass implements Path<TestClass> {
         @Override
-        public boolean contains(@Nonnull final Path other) {
+        public boolean contains(@Nonnull final TestClass other) {
             return false;
         }
     }