You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2022/03/04 10:45:17 UTC

[GitHub] [zookeeper] kezhuw commented on a change in pull request #1819: ZOOKEEPER-4467: Format OpCode.addWatch in Request.op2String

kezhuw commented on a change in pull request #1819:
URL: https://github.com/apache/zookeeper/pull/1819#discussion_r819462849



##########
File path: zookeeper-server/src/test/java/org/apache/zookeeper/server/ToStringTest.java
##########
@@ -37,4 +41,18 @@ public void testJuteToString() {
         assertNotSame("ERROR", req.toString());
     }
 
+    @Test
+    public void testOpCodeToString() throws Exception {
+        Class<?> clazz = ZooDefs.OpCode.class;
+        Field[] fields = clazz.getFields();
+
+        assertNotEquals(0, fields.length);
+
+        for (Field field : fields) {
+            int op_code = field.getInt(null);

Review comment:
       I have pushed a fixup commit with changes requested.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org