commit | c355c931d5d9d7727f453919eb35c8644296d3c9 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Sep 10 10:51:03 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Sep 10 18:49:45 2015 +0000 |
tree | 184c81a66ce2667e6126278acffdbaa26cb434cd | |
parent | f321e6bb8bbd18cfda58bffc8e192ee688f85aab [diff] |
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());