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 7BB5071DD for ; Fri, 23 Dec 2011 03:35:00 +0000 (UTC) Received: (qmail 93942 invoked by uid 500); 23 Dec 2011 03:34:59 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 93771 invoked by uid 500); 23 Dec 2011 03:34:50 -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 93753 invoked by uid 99); 23 Dec 2011 03:34:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2011 03:34:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gudnabrsam@gmail.com designates 209.85.210.43 as permitted sender) Received: from [209.85.210.43] (HELO mail-pz0-f43.google.com) (209.85.210.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2011 03:34:41 +0000 Received: by daec6 with SMTP id c6so36148333dae.30 for ; Thu, 22 Dec 2011 19:34:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=xICadvNlGW+otqmTBEZzdnSNq0wnr5oEXpFsPsoEChE=; b=J3+ltLP1e79G9/0GwBaE2MYUWmwcxHW8oSzVJuphVOvP5XjunnrOWeDicD3NyEv6oG SLnL/Ip7g5ax7IZXcxYHvbgIVEtZ/kHvRm+eYHMnK9h8ribVBWapPDdT2JoimKEzl3ZK LuHzKRXvc1vaXO/DGAoik6+MGzZLj1G5bnTHs= MIME-Version: 1.0 Received: by 10.68.120.72 with SMTP id la8mr28251477pbb.56.1324611261039; Thu, 22 Dec 2011 19:34:21 -0800 (PST) Received: by 10.68.62.135 with HTTP; Thu, 22 Dec 2011 19:34:21 -0800 (PST) Reply-To: gudnabrsam@gmail.com In-Reply-To: <1163105036.870224.1324503717872.JavaMail.fmail@mwmweb077> References: <1163105036.870224.1324503717872.JavaMail.fmail@mwmweb077> Date: Thu, 22 Dec 2011 21:34:21 -0600 Message-ID: Subject: Re: commons lang3: NullArgumentException missing? From: Matt Benson To: Commons Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Dec 21, 2011 at 3:41 PM, Karsten Wutzke wrote: > Wow, the Java/JDK is getting dirtier and dirtier with every release. The = code > > =A0public Foo(Bar bar) { > =A0 =A0 this.bar =3D Objects.requireNonNull(bar); > =A0} > looks really really awful to me. As opposed to this.bar =3D Validate.notNull(bar) from commons-lang3? ;) Matt > > IMO it's time to reimplement the JDK and throw away backward compatibilit= y than introduce patch after patch. At least a second clean API of the JDK = should be provided. > > I wonder what others are thinking about this. > > Karsten > > > -----Urspr=FCngliche 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. Sinc= e >>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 > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org