File tree Expand file tree Collapse file tree
zookeeper-server/src/test/java/org/apache/zookeeper/server/quorum Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )),
You can’t perform that action at this time.
0 commit comments