Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 80513 invoked from network); 29 Nov 2009 17:32:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Nov 2009 17:32:10 -0000 Received: (qmail 57147 invoked by uid 500); 29 Nov 2009 17:32:09 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 57011 invoked by uid 500); 29 Nov 2009 17:32:08 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 57001 invoked by uid 99); 29 Nov 2009 17:32:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 17:32:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paulus.benedictus@gmail.com designates 209.85.160.51 as permitted sender) Received: from [209.85.160.51] (HELO mail-pw0-f51.google.com) (209.85.160.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Nov 2009 17:31:58 +0000 Received: by pwj10 with SMTP id 10so1790803pwj.10 for ; Sun, 29 Nov 2009 09:31:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :reply-to:user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Gj7qGTCmgbkP/R5ACpHCM3lMLrjE8r/iG0GgGXgcEeg=; b=DWID5oqqpE1Fxtm9CeYfBpdXjo4Nre/fHwml2YZvhsidApjiWxpI7RYqE+AupDLJhS 3TQt+GvRcbBOU9iJTXcTTVo0uP/9/6nV7PH2339oRJu/K9wjGAYpyOV7cOZf2n2suq5A YrIXda/zT7UZmvmzqcBexf71qyo/xMdISryCY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; b=YHvMhIcG5qm55QDlkXdy4pEkhIG7gAV8Nwot8oMNNCpV03CFUpgIqTsf82SPvij9GO l+ZNZ/b6l3ELfGgWftZLi2d5LrRCOYC4yqcJeqignrsZypAqjV5PqAb5GkPptSd29LUo hy0dTxZcoWAo99sADE9/hYWN9pwC3pXzDVqeg= Received: by 10.115.132.12 with SMTP id j12mr5185788wan.121.1259515897154; Sun, 29 Nov 2009 09:31:37 -0800 (PST) Received: from ?127.0.0.1? ([75.81.14.57]) by mx.google.com with ESMTPS id 23sm2335633pxi.9.2009.11.29.09.31.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 29 Nov 2009 09:31:36 -0800 (PST) Sender: Paul Benedict Message-ID: <4B12B001.3070502@apache.org> Date: Sun, 29 Nov 2009 11:31:45 -0600 From: Paul Benedict Reply-To: pbenedict@apache.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091121 Thunderbird/3.0 MIME-Version: 1.0 To: pbenedict@apache.org, Apache Commons Developers List Subject: [lang 3] Validate: rename methods References: <4B12ACD3.9060702@apache.org> In-Reply-To: <4B12ACD3.9060702@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I want to rename isTrue to validateArgument (which throws IllegalArgumentException); then also introduce validateState (which throws IllegalStateException). I also propose we rename the methods so that the verb "validate" prefixes them all (Google Collections uses "check"). Furthermore, this will better namespace the method when static imports are used: isTrue -> validateArgument / validateState notNull -> validateNotNull notEmpty -> validateNotEmpty notBlank -> validateNotBlank validIndex -> validateElementIndex noNullElements -> validateElementsNotNull I also want to introduce some new methods: validateInstanceOf validateAssignable --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org