Github user nerdyyatrice commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/262#discussion_r118167130 --- Diff: src/contrib/loggraph/src/java/org/apache/zookeeper/graph/JsonGenerator.java --- @@ -121,8 +121,8 @@ public JsonGenerator(LogIterator iter) { } else if ((m = newElectionP.matcher(e.getEntry())).find()) { Iterator<Integer> iterator = servers.iterator(); long zxid = Long.valueOf(m.group(2)); - int count = (int)zxid;// & 0xFFFFFFFFL; - int epoch = (int)Long.rotateRight(zxid, 32);// >> 32; + long count = zxid & 0xffffffffffL; --- End diff -- How can this be all over the code base instead of a function somewhere in a util file
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---