Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 53370 invoked from network); 9 Jan 2010 22:34:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jan 2010 22:34:20 -0000 Received: (qmail 38514 invoked by uid 500); 9 Jan 2010 22:34:17 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 38442 invoked by uid 500); 9 Jan 2010 22:34:17 -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 38347 invoked by uid 99); 9 Jan 2010 22:34:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jan 2010 22:34:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Jan 2010 22:34:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D1A7234C052 for ; Sat, 9 Jan 2010 14:33:54 -0800 (PST) Message-ID: <1287140640.140921263076434431.JavaMail.jira@brutus.apache.org> Date: Sat, 9 Jan 2010 22:33:54 +0000 (UTC) From: "Maarten Coene (JIRA)" To: issues@commons.apache.org Subject: [jira] Reopened: (LANG-470) Add containsAll methods to ArrayUtils In-Reply-To: <1261343497.1226928766386.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-470?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maarten Coene reopened LANG-470: -------------------------------- Sorry but I don't agree on this one. If the code you provided is the reason to not implement his, you should remove a lot of other utility methods as well from ArrayUtils and other *Utils classes. In addition, your code will throw a NPE if one of the passed in arrays are null. The "one-line code" becomes a bit more complex to handle this situation properly. Maarten > Add containsAll methods to ArrayUtils > ------------------------------------- > > Key: LANG-470 > URL: https://issues.apache.org/jira/browse/LANG-470 > Project: Commons Lang > Issue Type: New Feature > Components: lang.* > Affects Versions: 2.4 > Reporter: Maarten Coene > Fix For: 3.0 > > Attachments: ArrayUtilsContainsAll.pat > > > The ArrayUtils class contains several "contains" methods. > It could be usefull to add the corresponding containsAll(Object[] array1, Object[] array2) methods (and corresponding for primitive types). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.