Skip to content

Commit da98a8d

Browse files
committed
ZOOKEEPER-3188: fix JDK-13 warning
1 parent 5bd1f4e commit da98a8d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum/CnxManagerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ public void testInitialMessage() throws Exception {
624624
// now parse it
625625
din = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
626626
msg = InitialMessage.parse(QuorumCnxManager.PROTOCOL_VERSION, din);
627-
assertEquals(new Long(5L), msg.sid);
627+
assertEquals(Long.valueOf(5), msg.sid);
628628
assertEquals(Arrays.asList(new InetSocketAddress("10.0.0.2", 3888)), msg.electionAddr);
629629
} catch (InitialMessage.InitialMessageException ex) {
630630
Assert.fail(ex.toString());
@@ -643,7 +643,7 @@ public void testInitialMessage() throws Exception {
643643
// now parse it
644644
din = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
645645
msg = InitialMessage.parse(QuorumCnxManager.PROTOCOL_VERSION, din);
646-
assertEquals(new Long(5L), msg.sid);
646+
assertEquals(Long.valueOf(5), msg.sid);
647647
assertEquals(Arrays.asList(new InetSocketAddress("1.1.1.1", 9999),
648648
new InetSocketAddress("2.2.2.2", 8888),
649649
new InetSocketAddress("3.3.3.3", 7777)),

0 commit comments

Comments
 (0)