Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 012C510522 for ; Mon, 29 Jul 2013 15:35:55 +0000 (UTC) Received: (qmail 31220 invoked by uid 500); 29 Jul 2013 15:35:52 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 31149 invoked by uid 500); 29 Jul 2013 15:35:52 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 30539 invoked by uid 99); 29 Jul 2013 15:35:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 15:35:50 +0000 Date: Mon, 29 Jul 2013 15:35:50 +0000 (UTC) From: "Tsuyoshi OZAWA (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-9779) create constant RpcConstants.CLIENT_ID_LENGTH rather than hard-coding 16 everywhere MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-9779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsuyoshi OZAWA updated HADOOP-9779: ----------------------------------- Assignee: Tsuyoshi OZAWA > create constant RpcConstants.CLIENT_ID_LENGTH rather than hard-coding 16 everywhere > ----------------------------------------------------------------------------------- > > Key: HADOOP-9779 > URL: https://issues.apache.org/jira/browse/HADOOP-9779 > Project: Hadoop Common > Issue Type: Bug > Reporter: Colin Patrick McCabe > Assignee: Tsuyoshi OZAWA > Priority: Minor > Attachments: HADOOP-9779.1.patch > > > We should create a constant RpcConstants.CLIENT_ID_LENGTH rather than hard-coding the number 16 everywhere. > Sun Java coding style convention 10.3: > bq. Numerical constants (literals) should not be coded directly, except for -1, 0, and 1, which can appear in a for loop as counter values. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira