Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 28248 invoked from network); 13 Sep 2008 12:19:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Sep 2008 12:19:40 -0000 Received: (qmail 83122 invoked by uid 500); 13 Sep 2008 12:19:35 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 83052 invoked by uid 500); 13 Sep 2008 12:19:35 -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 83041 invoked by uid 99); 13 Sep 2008 12:19:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Sep 2008 05:19:35 -0700 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, 13 Sep 2008 12:18:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 322BD234C1DE for ; Sat, 13 Sep 2008 05:18:46 -0700 (PDT) Message-ID: <1812615181.1221308326204.JavaMail.jira@brutus> Date: Sat, 13 Sep 2008 05:18:46 -0700 (PDT) From: "Viraj Turakhia (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (LANG-458) Add methods to return boolean from Validate.java instead of throwing IllegalArgumentException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Add methods to return boolean from Validate.java instead of throwing IllegalArgumentException --------------------------------------------------------------------------------------------- Key: LANG-458 URL: https://issues.apache.org/jira/browse/LANG-458 Project: Commons Lang Issue Type: Improvement Environment: software Reporter: Viraj Turakhia Priority: Minor I am using Validate.java since long and find it difficult to use when I just want to validate collections or string. With current interface, I go like this: while(cnt < list.size()) { List list1 = list.get(cnt); try { Validate.notEmpty(list1); } catch(IllegalArgumentException e) { continue; } } much better approach is: while(cnt < list.size()) { List list1 = list.get(cnt); try { if(! Validate.notEmpty(list1)) { continue; } } If you all agree with this change, I am willing to submit a patch for this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.