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 893E6200CDE for ; Tue, 25 Jul 2017 00:36:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 85F40164CCE; Mon, 24 Jul 2017 22:36:23 +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 CCD1E164B94 for ; Tue, 25 Jul 2017 00:36:22 +0200 (CEST) Received: (qmail 38208 invoked by uid 500); 24 Jul 2017 22:36:21 -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 38197 invoked by uid 99); 24 Jul 2017 22:36:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jul 2017 22:36:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 584F4C158B for ; Mon, 24 Jul 2017 22:36:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.2 X-Spam-Level: X-Spam-Status: No, score=-99.2 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 7Ql8GYkiPJzT for ; Mon, 24 Jul 2017 22:36:09 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 44B235FCD8 for ; Mon, 24 Jul 2017 22:36:08 +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 F1454E0E22 for ; Mon, 24 Jul 2017 22:36:05 +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 AE94F23F4F for ; Mon, 24 Jul 2017 22:36:02 +0000 (UTC) Date: Mon, 24 Jul 2017 22:36:02 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@zookeeper.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ZOOKEEPER-2829) Interface usability / compatibility improvements through Java annotation. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 24 Jul 2017 22:36:23 -0000 [ https://issues.apache.org/jira/browse/ZOOKEEPER-2829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099209#comment-16099209 ] ASF GitHub Bot commented on ZOOKEEPER-2829: ------------------------------------------- GitHub user afine opened a pull request: https://github.com/apache/zookeeper/pull/316 ZOOKEEPER-2829: Interface usability / compatibility improvements through Java annotation. This patch uses Apache Yetus audience annotations to label our publicly available interfaces and then generate our javadoc based on the annotations. The javadoc generated by this patch should be identical to our javadoc before with a few extra classes (that I think should have been included before anyway). HostProvider Record StaticHostProvider Transaction ZKClientConfig The "gotcha" with this patch is the way that java classes generated by jute are handled. There are four of these classes that need to be publicly documented: ACL, Id, Stat, StatPersisted (in addition to their superclass Record). I thought it would be safest to have the jute compiler always label these as "Public" and then we can filter out the ones we don't want in the javadoc ant task (by excluding the org.apache.zookeeper.server package and then pulling in the tools classes separately). You can merge this pull request into a Git repository by running: $ git pull https://github.com/afine/zookeeper ZOOKEEPER-2829 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zookeeper/pull/316.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #316 ---- commit c238a9f23787aade9122e7a9068b185d6c1fcf1b Author: Abraham Fine Date: 2017-07-24T22:11:43Z ZOOKEEPER-2829: Interface usability / compatibility improvements through Java annotation. ---- > Interface usability / compatibility improvements through Java annotation. > ------------------------------------------------------------------------- > > Key: ZOOKEEPER-2829 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2829 > Project: ZooKeeper > Issue Type: Improvement > Components: java client, server > Affects Versions: 3.4.10, 3.5.3 > Reporter: Michael Han > Assignee: Abraham Fine > Labels: annotation > > Hadoop has interface classification regarding the interfaces' scope and stability. ZK should do something similar, which not only provides additional benefits of making API compatibility easier between releases (or even commits, by automating the checks via some tooling), but also consistent with rest of Hadoop ecosystem. > See HADOOP-5073 for more context. -- This message was sent by Atlassian JIRA (v6.4.14#64029)