-
Type:
Improvement
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: server
-
Labels:
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));
- links to