Committed by
Gerrit Code Review
Use auto-boxing
Change-Id: I20b7073a49cacdb552ad16389f26b60ed407390a
Showing
2 changed files
with
2 additions
and
2 deletions
| ... | @@ -84,7 +84,7 @@ public class DefaultDatabaseState implements DatabaseState<String, byte[]> { | ... | @@ -84,7 +84,7 @@ public class DefaultDatabaseState implements DatabaseState<String, byte[]> { |
| 84 | } | 84 | } |
| 85 | nextVersion = context.get("nextVersion"); | 85 | nextVersion = context.get("nextVersion"); |
| 86 | if (nextVersion == null) { | 86 | if (nextVersion == null) { |
| 87 | - nextVersion = new Long(0); | 87 | + nextVersion = 0L; |
| 88 | context.put("nextVersion", nextVersion); | 88 | context.put("nextVersion", nextVersion); |
| 89 | } | 89 | } |
| 90 | } | 90 | } | ... | ... |
| ... | @@ -65,7 +65,7 @@ public class TimestampedTest { | ... | @@ -65,7 +65,7 @@ public class TimestampedTest { |
| 65 | 65 | ||
| 66 | @Test | 66 | @Test |
| 67 | public final void testValue() { | 67 | public final void testValue() { |
| 68 | - final Integer n = Integer.valueOf(42); | 68 | + final Integer n = 42; |
| 69 | Timestamped<Integer> tsv = new Timestamped<>(n, TS_1_1); | 69 | Timestamped<Integer> tsv = new Timestamped<>(n, TS_1_1); |
| 70 | assertSame(n, tsv.value()); | 70 | assertSame(n, tsv.value()); |
| 71 | 71 | ... | ... |
-
Please register or login to post a comment