sgroschupf / zkclient

a zookeeper client, that makes life a little easier.
www.datameer.com
Apache License 2.0
1.08k stars 491 forks source link

IZkChildListener$handleChildChange javadoc is inconsistent and misleading #66

Open sslavic opened 7 years ago

sslavic commented 7 years ago

https://github.com/sgroschupf/zkclient/blob/master/src/main/java/org/I0Itec/zkclient/IZkChildListener.java#L32 suggests that handleChildChange method is only

Called when the children of the given path changed.

while https://github.com/sgroschupf/zkclient/blob/master/src/main/java/org/I0Itec/zkclient/IZkChildListener.java#L37 suggests that it is also called when parent path is deleted in which case currentChilds will be null.