From: Robert Varga Date: Thu, 25 May 2017 07:30:25 +0000 (+0200) Subject: Fix a couple of warnings X-Git-Tag: release/nitrogen~105 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=56a0e6d267e5fc417b164b7e68fe090581c0639a;p=yangtools.git Fix a couple of warnings These methods can be made static. Change-Id: I6943921e69b5291d6586ffba42fc246de80bd82a Signed-off-by: Robert Varga --- diff --git a/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/Bug7844Test.java b/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/Bug7844Test.java index f6e8bacbe7..1736e27360 100644 --- a/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/Bug7844Test.java +++ b/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/leafref/Bug7844Test.java @@ -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()); diff --git a/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/Bug8291Test.java b/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/Bug8291Test.java index e26df9e917..f4952d5d59 100644 --- a/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/Bug8291Test.java +++ b/yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/Bug8291Test.java @@ -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(