Fix checkstyle reported by odlparent-3.0.0
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / test / java / org / opendaylight / controller / md / cluster / datastore / model / PeopleModel.java
index 566ca34034431e7f48eaaf76ee866fe33b762491..33ee0a38afe9a4c2ee186f6bcc35e525e3a2c6ec 100644 (file)
@@ -5,7 +5,6 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.controller.md.cluster.datastore.model;
 
 import org.opendaylight.yangtools.yang.common.QName;
@@ -18,7 +17,7 @@ import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.CollectionNo
 import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableContainerNodeBuilder;
 import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.ImmutableMapNodeBuilder;
 
-public class PeopleModel {
+public final class PeopleModel {
     public static final QName BASE_QNAME = QName.create(
             "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test:people", "2014-03-13", "people");
 
@@ -30,6 +29,10 @@ public class PeopleModel {
     public static final YangInstanceIdentifier BASE_PATH = YangInstanceIdentifier.of(BASE_QNAME);
     public static final YangInstanceIdentifier PERSON_LIST_PATH = BASE_PATH.node(PERSON_QNAME);
 
+    private PeopleModel() {
+
+    }
+
     public static NormalizedNode<?, ?> create() {
 
         // Create a list builder
@@ -73,12 +76,12 @@ public class PeopleModel {
         return ImmutableNodes.mapNodeBuilder(PERSON_QNAME).build();
     }
 
-    public static MapEntryNode newPersonEntry(String name) {
+    public static MapEntryNode newPersonEntry(final String name) {
         return ImmutableNodes.mapEntryBuilder(PERSON_QNAME, PERSON_NAME_QNAME, name)
                 .withChild(ImmutableNodes.leafNode(PERSON_NAME_QNAME, name)).build();
     }
 
-    public static YangInstanceIdentifier newPersonPath(String name) {
+    public static YangInstanceIdentifier newPersonPath(final String name) {
         return YangInstanceIdentifier.builder(PERSON_LIST_PATH)
                 .nodeWithKey(PERSON_QNAME, PERSON_NAME_QNAME, name).build();
     }