Fix a couple of warnings 03/57803/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 25 May 2017 07:30:25 +0000 (09:30 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 25 May 2017 07:30:59 +0000 (09:30 +0200)
These methods can be made static.

Change-Id: I6943921e69b5291d6586ffba42fc246de80bd82a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/Bug7844Test.java
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/Bug8291Test.java

index f6e8bacbe7c1071097a10c184a208f89d4c63f3d..1736e27360cdef86a0795da8e211ab43f34d3b02 100644 (file)
@@ -78,7 +78,7 @@ public class Bug7844Test {
         assertTrue(myLeafCtx == targetCtx.getReferencedByLeafRefCtxByName(foo("my-leaf")));
     }
 
-    private void assertLeafRef(final LeafRefContext leafRefToTest, final LeafRefPath expectedLeafRefPath) {
+    private static void assertLeafRef(final LeafRefContext leafRefToTest, final LeafRefPath expectedLeafRefPath) {
         assertNotNull(leafRefToTest);
         assertNotNull(expectedLeafRefPath);
         assertTrue(leafRefToTest.getReferencedByChilds().isEmpty());
index e26df9e917df22da433790cf81fa4f8bf3d41c76..f4952d5d592ad61460c45d8caa8c090807e24927 100644 (file)
@@ -57,7 +57,7 @@ public class Bug8291Test {
         writeInnerList(inMemoryDataTree);
     }
 
-    private void writeInnerList(final InMemoryDataTree inMemoryDataTree) throws DataValidationFailedException {
+    private static void writeInnerList(final InMemoryDataTree inMemoryDataTree) throws DataValidationFailedException {
         final InMemoryDataTreeModification modificationTree = inMemoryDataTree.takeSnapshot().newModification();
         modificationTree.write(
                 YangInstanceIdentifier.create(