Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 08DCE18595 for ; Tue, 19 Jan 2016 20:06:03 +0000 (UTC) Received: (qmail 76143 invoked by uid 500); 19 Jan 2016 20:06:02 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 76099 invoked by uid 500); 19 Jan 2016 20:06:02 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 76088 invoked by uid 99); 19 Jan 2016 20:06:02 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 20:06:02 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4DB10E0098; Tue, 19 Jan 2016 20:06:02 +0000 (UTC) From: swiftelan To: dev@struts.apache.org Reply-To: dev@struts.apache.org References: In-Reply-To: Subject: [GitHub] struts pull request: WW-4590 - Allow to use multiple names in resu... Content-Type: text/plain Message-Id: <20160119200602.4DB10E0098@git1-us-west.apache.org> Date: Tue, 19 Jan 2016 20:06:02 +0000 (UTC) Github user swiftelan commented on the pull request: https://github.com/apache/struts/pull/75#issuecomment-172970495 @aleksandr-m An annotation attribute that is defined as an array does not have to have the curly braces to define a single value for that attribute. Basing a Java API for configuration on XML syntax is a poor implementation. Why not support the entire XML configuration syntax in the annotation? Java has APIs to express a collection of items. It is much easier to utilize an array than a comma separated value attribute. The array allows the developer to clearly express their intent. Utilizing an array does not require parsing when the configuration value is accessed. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org