Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C694E7203 for ; Wed, 21 Dec 2011 17:18:29 +0000 (UTC) Received: (qmail 8278 invoked by uid 500); 21 Dec 2011 17:18:28 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 8187 invoked by uid 500); 21 Dec 2011 17:18:28 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 8179 invoked by uid 99); 21 Dec 2011 17:18:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 17:18:28 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcjcu-commons-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 17:18:19 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RdPni-0000bD-Uh for user@commons.apache.org; Wed, 21 Dec 2011 18:17:58 +0100 Received: from mail.scalaris.com ([62.154.225.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Dec 2011 18:17:58 +0100 Received: from Joerg.Schaible by mail.scalaris.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Dec 2011 18:17:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: user@commons.apache.org From: =?UTF-8?B?SsO2cmc=?= Schaible Subject: Re: commons lang3: NullArgumentException missing? Date: Wed, 21 Dec 2011 18:17:43 +0100 Organization: Scalaris AG Lines: 29 Message-ID: References: <190712075.1041299.1324484176269.JavaMail.fmail@mwmweb067> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: mail.scalaris.com User-Agent: KNode/4.7.3 X-Virus-Checked: Checked by ClamAV on apache.org Hi Karsten, kwutzke@web.de wrote: > Hello, > > I can see NullArgumentException has been removed from the lang3 API, but I > don't understand why. There have been long discussions in the past why a > NullArgumentException is better than using an IllegalArgumentException. > Most people are using commons-lang anyway, so what's the point of removing > NullArgumentException? > > What if developers don't want to use IllegalArgumentException? Is is more > advantageous to have these people provide their own NullArgumentException > implementations? This is stupid. One of these reasons why the commons-* > libs have been created was to fill the gap where the Java API has provided > nothing. Now lang3 is there, too. > > If people aren't interested in using NullArgumentException as provided, > why don't they simply ignore it or provide their own implementations? I > don't understand it. > > Any comments/explanations to clear this up are welcome. We decided to follow the JDK and throw in our sources a NullPointerException instead. We removed it to avoid any expectation that NullArgumentException is still in use like before. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org