Make TestModel a utility class 76/28776/2
authorRobert Varga <rovarga@cisco.com>
Sat, 24 Oct 2015 18:18:59 +0000 (20:18 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 28 Oct 2015 15:04:21 +0000 (15:04 +0000)
Final and private contructor.

Change-Id: Ia42bda3b878caa44aa785529d38928f167a863fc
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/TestModel.java

index fe66a67c34ed6dc4af119927a8ae6b5619e23645..b21dfc03f30c99beb4f418c99974cd303094b3b8 100644 (file)
@@ -17,7 +17,7 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 import org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException;
 import org.opendaylight.yangtools.yang.parser.impl.YangParserImpl;
 
-public class TestModel {
+public final class TestModel {
 
     public static final QName TEST_QNAME = QName.create("urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test", "2014-03-13",
         "test");
@@ -34,6 +34,9 @@ public class TestModel {
     public static final QName TWO_QNAME = QName.create(TEST_QNAME, "two");
     public static final QName THREE_QNAME = QName.create(TEST_QNAME, "three");
 
+    private TestModel() {
+        throw new UnsupportedOperationException();
+    }
 
     public static final InputStream getDatastoreTestInputStream() {
         return TestModel.class.getResourceAsStream(DATASTORE_TEST_YANG);