Skip to content

Commit

Permalink
ZOOKEEPER-2214: Findbugs warning: LearnerHandler.packetToString Dead
Browse files Browse the repository at this point in the history
store to local variable (Hongchao Deng via rgs)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1685167 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rgs1 committed Jun 12, 2015
1 parent d54ca14 commit 7288576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ IMPROVEMENTS:
ZOOKEEPER-2208: Log type of unexpected quorum packet in observer loop
(Akihiro Suda via rgs)

ZOOKEEPER-2214: Findbugs warning: LearnerHandler.packetToString Dead
store to local variable (Hongchao Deng via rgs)

Release 3.5.0 - 8/4/2014

NEW FEATURES:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,8 @@ private void sendPackets() throws InterruptedException {
}

static public String packetToString(QuorumPacket p) {
String type = null;
String type;
String mess = null;
Record txn = null;

switch (p.getType()) {
case Leader.ACK:
Expand All @@ -279,7 +278,7 @@ static public String packetToString(QuorumPacket p) {
type = "PROPOSAL";
TxnHeader hdr = new TxnHeader();
try {
txn = SerializeUtils.deserializeTxn(p.getData(), hdr);
SerializeUtils.deserializeTxn(p.getData(), hdr);
// mess = "transaction: " + txn.toString();
} catch (IOException e) {
LOG.warn("Unexpected exception",e);
Expand Down

0 comments on commit 7288576

Please sign in to comment.