Fix CS warnings in sal-clustering-commons and enable enforcement
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / test / java / org / opendaylight / controller / cluster / datastore / node / utils / serialization / ValueTypeTest.java
index 15805497adbfe59d67f6cac045850e44b48a1ea7..10bf09073984d5a2560f1b60f3dbd00d8f5048c1 100644 (file)
@@ -9,25 +9,26 @@
 package org.opendaylight.controller.cluster.datastore.node.utils.serialization;
 
 import static org.junit.Assert.assertEquals;
+
 import org.junit.Test;
 
 public class ValueTypeTest {
 
     @Test
-    public void testGetSerializableType(){
-        byte[] b = new byte[10];
-        b[0] = 1;
-        b[2] = 2;
+    public void testGetSerializableType() {
+        byte[] bytes = new byte[10];
+        bytes[0] = 1;
+        bytes[2] = 2;
 
-        ValueType serializableType = ValueType.getSerializableType(b);
+        ValueType serializableType = ValueType.getSerializableType(bytes);
         assertEquals(ValueType.BINARY_TYPE, serializableType);
     }
 
     @Test
-    public void testNullType(){
+    public void testNullType() {
         ValueType serializableType = ValueType.getSerializableType(null);
         assertEquals(ValueType.NULL_TYPE, serializableType);
 
         assertEquals(null, ValueType.NULL_TYPE.deserialize(""));
     }
-}
\ No newline at end of file
+}