From user-return-26992-apmail-commons-user-archive=commons.apache.org@commons.apache.org Wed Dec 21 21:42:28 2011 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 5CE877B44 for ; Wed, 21 Dec 2011 21:42:28 +0000 (UTC) Received: (qmail 86287 invoked by uid 500); 21 Dec 2011 21:42:27 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 86204 invoked by uid 500); 21 Dec 2011 21:42:27 -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 86196 invoked by uid 99); 21 Dec 2011 21:42:27 -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 21:42:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.72.192.243] (HELO fmmailgate05.web.de) (217.72.192.243) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Dec 2011 21:42:18 +0000 Received: from web.de by fmmailgate05.web.de (Postfix) with ESMTP id D68A868501E4 for ; Wed, 21 Dec 2011 22:41:57 +0100 (CET) Received: from [79.243.243.192] by mwmweb077 with HTTP; Wed Dec 21 22:41:57 CET 2011 Date: Wed, 21 Dec 2011 22:41:57 +0100 (CET) From: "Karsten Wutzke" To: "Commons Users List" Message-ID: <1163105036.870224.1324503717872.JavaMail.fmail@mwmweb077> Subject: Re: commons lang3: NullArgumentException missing? MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: normal Sensitivity: Normal X-Provags-ID: V01U2FsdGVkX1/qEY4+/n1S//jLKYqzjPS0l+sZxkUFpZrtE9mWEkX6Qi9UhA9iD9vp 8E+joR2uViJ2eCqfGUvY2Q== X-Virus-Checked: Checked by ClamAV on apache.org Wow, the Java/JDK is getting dirtier and dirtier with every release. The co= de public Foo(Bar bar) { this.bar =3D Objects.requireNonNull(bar); } looks really really awful to me. IMO it's time to reimplement the JDK and throw away backward compatibility = than introduce patch after patch. At least a second clean API of the JDK sh= ould be provided. I wonder what others are thinking about this. Karsten -----Urspr=C3=BCngliche Nachricht----- Von: "Paul Benedict" Gesendet: 21.12.2011 19:04:48 An: "Commons Users List" Betreff: Re: commons lang3: NullArgumentException missing? >The official standard in the JDK is to throw NPE for null arguments. Since >JDK 7, they have made API available for this in >java.util.Objects#requireNonNull(). Commons is following the official >direction. >On Dec 21, 2011 10:16 AM, wrote: ___________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=3D021192 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org