Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 62F84200CC1 for ; Mon, 26 Jun 2017 03:11:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 60FBC160BF4; Mon, 26 Jun 2017 01:11:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A589D160BE0 for ; Mon, 26 Jun 2017 03:11:07 +0200 (CEST) Received: (qmail 87739 invoked by uid 500); 26 Jun 2017 01:11:05 -0000 Mailing-List: contact dev-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zookeeper.apache.org Delivered-To: mailing list dev@zookeeper.apache.org Received: (qmail 87728 invoked by uid 99); 26 Jun 2017 01:11:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2017 01:11:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 89E73C05B0 for ; Mon, 26 Jun 2017 01:11:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5MpcZsvbSrwn for ; Mon, 26 Jun 2017 01:11:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6D6195FB2C for ; Mon, 26 Jun 2017 01:11:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EB1C2E0026 for ; Mon, 26 Jun 2017 01:11:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id EBA00240B8 for ; Mon, 26 Jun 2017 01:11:00 +0000 (UTC) Date: Mon, 26 Jun 2017 01:11:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2818) Improve the ZooKeeper#setACL java doc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 26 Jun 2017 01:11:08 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062467#comment-16062467 ] ASF GitHub Bot commented on ZOOKEEPER-2818: ------------------------------------------- Github user brahmareddybattula commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/291#discussion_r123914814 --- Diff: src/java/main/org/apache/zookeeper/ZooKeeper.java --- @@ -2347,25 +2347,25 @@ public void getACL(final String path, Stat stat, ACLCallback cb, /** * Set the ACL for the node of the given path if such a node exists and the - * given version matches the version of the node. Return the stat of the + * given aclVersion matches the aclVersion of the node. Return the stat of the * node. *

* A KeeperException with error code KeeperException.NoNode will be thrown * if no node with the given path exists. *

* A KeeperException with error code KeeperException.BadVersion will be - * thrown if the given version does not match the node's version. + * thrown if the given aclVersion does not match the node's aclVersion. * * @param path * @param acl - * @param version + * @param aclVersion --- End diff -- In that case dn't we need to consider remain two args(path,acl) also..? if you agree, might be handle in another jira..? > Improve the ZooKeeper#setACL java doc > -------------------------------------- > > Key: ZOOKEEPER-2818 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2818 > Project: ZooKeeper > Issue Type: Bug > Reporter: Brahma Reddy Battula > > As per discussion in [mailinglist|http://mail-archives.apache.org/mod_mbox/zookeeper-user/201706.mbox/browser],It's better improve Java doc or argument which might not mislead for new users. -- This message was sent by Atlassian JIRA (v6.4.14#64029)