/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache license, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the license for the specific language governing permissions and
 * limitations under the license.
 */
package org.apache.logging.log4j.core.util;

/**
 * Utility class providing common validation logic.
 */
public final class Assert {
    private Assert() {
    }

    /**
     * Throws a {@code NullPointerException} if the specified parameter is
     * {@code null}, otherwise returns the specified parameter.
     * <p>
     * On Java 7, just use {@code Objects.requireNonNull(T, String)}
     * </p>
     * <p>
     * Usage:
     *
     * <pre>
     * // earlier you would write this:
     * public SomeConstructor(Object param) {
     *     if (param == null) {
     *         throw new NullPointerException(&quot;param&quot;);
     *     }
     *     this.field = param;
     * }
     *
     * // now you can do the same in one line:
     * public SomeConstructor(Object param) {
     *     this.field = Assert.requireNonNull(&quot;param&quot;);
     * }
     * </pre>
     *
     * @param <T> the type of the parameter to check and return
     * @param object the parameter to check
     * @param message name of the parameter to use in the error message if
     *            {@code null}
     * @return the specified parameter
     */
    public static <T> T requireNonNull(final T object, final String message) {
        if (object == null) {
            throw new NullPointerException(message);
        }
        return object;
    }
}

@@ -1223,24 +1223,29 @@
 sage:%0A     *
+ %3C/p%3E
 %0A     * %3Cpre
@@ -1813,130 +1813,162 @@
 age 
-name of the parame
+message to popula
 te
-r
  t
-o use in the error message if%0A     *            %7B@code null%7D%0A     * @return the specified parameter
+he NPE with if necessary%0A     * @return the specified parameter%0A     * @throws NullPointerException if %7B@code object%7D is %7B@code null%7D
 %0A   

Fix up javadoc.