@@ -0,0 +1,1322 @@
+/*%0A * This program is free software; you can redistribute it and/or modify it under the%0A *  terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software%0A *  Foundation.%0A *%0A *  You should have received a copy of the GNU Lesser General Public License along with this%0A *  program; if not, you can obtain a copy at http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html%0A *  or from the Free Software Foundation, Inc.,%0A *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.%0A *%0A *  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;%0A *  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.%0A *  See the GNU Lesser General Public License for more details.%0A *%0A *  Copyright (c) 2006 - 2013 Pentaho Corporation..  All rights reserved.%0A */%0A%0Apackage org.pentaho.reporting.libraries.base.util;%0A%0Apublic class ArgumentNullException extends IllegalArgumentException%0A%7B%0A  private String field;%0A%0A  public ArgumentNullException(final String field)%0A  %7B%0A    super(String.format(%22Argument '%25s' is %3Cnull%3E%22, field));%0A    this.field = field;%0A  %7D%0A%0A  public String getField()%0A  %7B%0A    return field;%0A  %7D%0A%0A  public static void validate(String field, Object o)%0A  %7B%0A    if (o == null)%0A      throw new ArgumentNullException(field);%0A  %7D%0A%7D%0A

Simplify null tests