Mass conversion to static methods
[netconf.git] / restconf / sal-rest-connector / src / test / java / org / opendaylight / controller / sal / restconf / impl / nn / to / xml / test / NnToXmlWithChoiceTest.java
index d0f0ee0782078a8d52b472246829113f3ef317f7..dc77462eed40b1d917610157cba20eb39b79bf2a 100644 (file)
@@ -69,8 +69,7 @@ public class NnToXmlWithChoiceTest extends AbstractBodyReaderTest {
         assertTrue(output.toString().contains("<lf2>String data2</lf2>"));
     }
 
-    private NormalizedNodeContext prepareNNC(final String name,
-            final Object value) {
+    private static NormalizedNodeContext prepareNNC(final String name, final Object value) {
 
         final QName contQname = QName.create("module:with:choice", "2013-12-18",
                 "cont");
@@ -100,7 +99,7 @@ public class NnToXmlWithChoiceTest extends AbstractBodyReaderTest {
         dataContainerNodeAttrBuilder.withChild(dataChoice.build());
 
         final NormalizedNodeContext testNormalizedNodeContext = new NormalizedNodeContext(
-                new InstanceIdentifierContext<DataSchemaNode>(null,
+                new InstanceIdentifierContext<>(null,
                         contSchemaNode, null, schemaContext),
                 dataContainerNodeAttrBuilder.build());