Use auto-boxing

Change-Id: I20b7073a49cacdb552ad16389f26b60ed407390a
diff --git a/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDatabaseState.java b/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDatabaseState.java
index 9d3505b..9a55ffb 100644
--- a/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDatabaseState.java
+++ b/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DefaultDatabaseState.java
@@ -84,7 +84,7 @@
         }
         nextVersion = context.get("nextVersion");
         if (nextVersion == null) {
-            nextVersion = new Long(0);
+            nextVersion = 0L;
             context.put("nextVersion", nextVersion);
         }
     }
diff --git a/core/store/dist/src/test/java/org/onosproject/store/impl/TimestampedTest.java b/core/store/dist/src/test/java/org/onosproject/store/impl/TimestampedTest.java
index 0f67572..c47eb27 100644
--- a/core/store/dist/src/test/java/org/onosproject/store/impl/TimestampedTest.java
+++ b/core/store/dist/src/test/java/org/onosproject/store/impl/TimestampedTest.java
@@ -65,7 +65,7 @@
 
     @Test
     public final void testValue() {
-       final Integer n = Integer.valueOf(42);
+       final Integer n = 42;
        Timestamped<Integer> tsv = new Timestamped<>(n, TS_1_1);
        assertSame(n, tsv.value());