Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
Description
For example:
if (recursive) { ZKUtil.visitSubTreeDFS(zk, path, watch, new StringCallback() { @Override public void processResult(int rc, String path, Object ctx, String name) { out.println(path); } }); }
refactor to
ZKUtil.visitSubTreeDFS(zk, path, watch, (rc, path1, ctx, name) -> out.println(path1));
Attachments
Issue Links
- links to