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 478DB200B62 for ; Fri, 12 Aug 2016 16:30:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 46238160AB8; Fri, 12 Aug 2016 14:30:22 +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 8E1BF160A85 for ; Fri, 12 Aug 2016 16:30:21 +0200 (CEST) Received: (qmail 73528 invoked by uid 500); 12 Aug 2016 14:30:20 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 73512 invoked by uid 99); 12 Aug 2016 14:30:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2016 14:30:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8D0F92C02A1 for ; Fri, 12 Aug 2016 14:30:20 +0000 (UTC) Date: Fri, 12 Aug 2016 14:30:20 +0000 (UTC) From: "Karthik Kambatla (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Moved] (HADOOP-13493) Compatibility Docs should clarify the policy for what takes precedence when a conflict is found MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 12 Aug 2016 14:30:22 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13493?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karthik Kambatla moved YARN-5515 to HADOOP-13493: ------------------------------------------------- Affects Version/s: (was: 2.7.2) 2.7.2 Component/s: (was: documentation) documentation Key: HADOOP-13493 (was: YARN-5515) Project: Hadoop Common (was: Hadoop YARN) > Compatibility Docs should clarify the policy for what takes precedence wh= en a conflict is found > -------------------------------------------------------------------------= ---------------------- > > Key: HADOOP-13493 > URL: https://issues.apache.org/jira/browse/HADOOP-13493 > Project: Hadoop Common > Issue Type: Task > Components: documentation > Affects Versions: 2.7.2 > Reporter: Robert Kanter > > The Compatibility Docs (https://hadoop.apache.org/docs/r2.7.1/hadoop-proj= ect-dist/hadoop-common/Compatibility.html#Java_API) list the policies for P= rivate, Public, not annotated, etc Classes and members, but it doesn't say = what happens when there's a conflict. We should try obviously try to avoid= this situation, but it would be good to explicitly state what takes preced= ence. > As an example, until YARN-3225=C2=A0made it consistent, {{RefreshNodesReq= uest}} looked like this: > {code:java} > @Private > @Stable > public abstract class RefreshNodesRequest { > @Public > @Stable > public static RefreshNodesRequest newInstance() { > RefreshNodesRequest request =3D Records.newRecord(RefreshNodesRequest= .class); > return request; > } > } > {code} > Note that the class is marked {{\@Private}}, but the method is marked {{\= @Public}}. > In this example, I'd say that the class level should have priority. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org