Skip to content

Commit

Permalink
ZOOKEEPER-3188: fix JDK-13 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
symat committed Aug 14, 2019
1 parent 5bd1f4e commit da98a8d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -624,7 +624,7 @@ public void testInitialMessage() throws Exception {
// now parse it
din = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
msg = InitialMessage.parse(QuorumCnxManager.PROTOCOL_VERSION, din);
assertEquals(new Long(5L), msg.sid);
assertEquals(Long.valueOf(5), msg.sid);
assertEquals(Arrays.asList(new InetSocketAddress("10.0.0.2", 3888)), msg.electionAddr);
} catch (InitialMessage.InitialMessageException ex) {
Assert.fail(ex.toString());
Expand All @@ -643,7 +643,7 @@ public void testInitialMessage() throws Exception {
// now parse it
din = new DataInputStream(new ByteArrayInputStream(bos.toByteArray()));
msg = InitialMessage.parse(QuorumCnxManager.PROTOCOL_VERSION, din);
assertEquals(new Long(5L), msg.sid);
assertEquals(Long.valueOf(5), msg.sid);
assertEquals(Arrays.asList(new InetSocketAddress("1.1.1.1", 9999),
new InetSocketAddress("2.2.2.2", 8888),
new InetSocketAddress("3.3.3.3", 7777)),
Expand Down

0 comments on commit da98a8d

Please sign in to comment.