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 B0A69200C01 for ; Thu, 19 Jan 2017 20:23:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AF36A160B54; Thu, 19 Jan 2017 19:23:33 +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 042DD160B57 for ; Thu, 19 Jan 2017 20:23:32 +0100 (CET) Received: (qmail 56595 invoked by uid 500); 19 Jan 2017 19:23:32 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 56584 invoked by uid 99); 19 Jan 2017 19:23:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2017 19:23:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id BB110188877 for ; Thu, 19 Jan 2017 19:23:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id jsMM_S40aaDM for ; Thu, 19 Jan 2017 19:23:30 +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 5009C5F3BC for ; Thu, 19 Jan 2017 19:23:30 +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 9ADEBE8683 for ; Thu, 19 Jan 2017 19:23:27 +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 9A2B125291 for ; Thu, 19 Jan 2017 19:23:26 +0000 (UTC) Date: Thu, 19 Jan 2017 19:23:26 +0000 (UTC) From: "Bruno P. Kinoshita (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEXT-58) All uppercase methods? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 19 Jan 2017 19:23:33 -0000 [ https://issues.apache.org/jira/browse/TEXT-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15830432#comment-15830432 ] Bruno P. Kinoshita commented on TEXT-58: ---------------------------------------- Hi all, Good points raised in the ticket, both regarding name and the public mutable array. What about the following, based on previous comments: * Remove the methods and use static member variables * Replace the mutable arrays by an immutable map * And then change the methods to accept a map? (The LookupTranslator fills a hashmap with the given lookup[][]) These arrays are convenience tables, used for look-ups. The idea is to provide some existing tables like these for users, but also allow them to call the methods passing their own look-up tables. > All uppercase methods? > ---------------------- > > Key: TEXT-58 > URL: https://issues.apache.org/jira/browse/TEXT-58 > Project: Commons Text > Issue Type: Improvement > Reporter: Gilles > Priority: Trivial > Labels: api, convention, standard > Fix For: 1.0 > > > Class {{o.a.c.text.translate.EntityArrays}} contains methods names with all uppercase letters (and underscores). > I understand that they create copies of _static_ constants (although even that is not true since they return arrays!), but are you sure you want to release a new component that does not follow the usual convention? > I understand these comes from LANG but isn't it the right time to fix the API? -- This message was sent by Atlassian JIRA (v6.3.4#6332)