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 / CarsModel.java
index bd6594007d48cefad6a0b9750c378c4e98d43806..f633804e66be3f1a5c1b6fe1a8c942f202732765 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 java.math.BigInteger;
@@ -20,7 +19,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 CarsModel {
+public final class CarsModel {
     public static final QName BASE_QNAME = QName.create(
             "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test:cars", "2014-03-13", "cars");
 
@@ -32,6 +31,10 @@ public class CarsModel {
     public static final YangInstanceIdentifier BASE_PATH = YangInstanceIdentifier.of(BASE_QNAME);
     public static final YangInstanceIdentifier CAR_LIST_PATH = BASE_PATH.node(CAR_QNAME);
 
+    private CarsModel() {
+
+    }
+
     public static NormalizedNode<?, ?> create() {
 
         // Create a list builder
@@ -68,12 +71,12 @@ public class CarsModel {
         return newCarsNode(newCarsMapNode());
     }
 
-    public static ContainerNode newCarsNode(MapNode carsList) {
+    public static ContainerNode newCarsNode(final MapNode carsList) {
         return ImmutableContainerNodeBuilder.create().withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(
                 BASE_QNAME)).withChild(carsList).build();
     }
 
-    public static MapNode newCarsMapNode(MapEntryNode... carEntries) {
+    public static MapNode newCarsMapNode(final MapEntryNode... carEntries) {
         CollectionNodeBuilder<MapEntryNode, MapNode> builder = ImmutableMapNodeBuilder.create()
                 .withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(CAR_QNAME));
         for (MapEntryNode e : carEntries) {
@@ -93,13 +96,13 @@ public class CarsModel {
         return ImmutableNodes.mapNodeBuilder(CAR_QNAME).build();
     }
 
-    public static MapEntryNode newCarEntry(String name, BigInteger price) {
+    public static MapEntryNode newCarEntry(final String name, final BigInteger price) {
         return ImmutableNodes.mapEntryBuilder(CAR_QNAME, CAR_NAME_QNAME, name)
                 .withChild(ImmutableNodes.leafNode(CAR_NAME_QNAME, name))
                 .withChild(ImmutableNodes.leafNode(CAR_PRICE_QNAME, price)).build();
     }
 
-    public static YangInstanceIdentifier newCarPath(String name) {
+    public static YangInstanceIdentifier newCarPath(final String name) {
         return YangInstanceIdentifier.builder(CAR_LIST_PATH).nodeWithKey(CAR_QNAME, CAR_NAME_QNAME, name).build();
     }
 }