You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/08/23 13:42:28 UTC
[10/23] logging-log4j2 git commit: Javadoc says: "@deprecated Will be
removed in 2.5." and 2.6.2 is the current release.
Javadoc says: "@deprecated Will be removed in 2.5." and 2.6.2 is the
current release.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/cee9414b
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/cee9414b
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/cee9414b
Branch: refs/heads/LOG4J2-1349-gcfree-threadcontext
Commit: cee9414b1a639e384df5f3dacb33b2e8e6e1737b
Parents: b7da5e7
Author: Gary Gregory <gg...@apache.org>
Authored: Mon Aug 22 22:35:50 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Mon Aug 22 22:35:50 2016 -0700
----------------------------------------------------------------------
.../apache/logging/log4j/core/util/Assert.java | 36 --------------------
1 file changed, 36 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/cee9414b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Assert.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Assert.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Assert.java
index ff5b1e3..d2ddf81 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Assert.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Assert.java
@@ -31,40 +31,4 @@ public final class Assert {
}
return value;
}
-
- /**
- * 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:
- * </p>
- * <pre>
- * // earlier you would write this:
- * public SomeConstructor(Object param) {
- * if (param == null) {
- * throw new NullPointerException("param");
- * }
- * this.field = param;
- * }
- *
- * // now you can do the same in one line:
- * public SomeConstructor(Object param) {
- * this.field = Assert.requireNonNull("param");
- * }
- * </pre>
- *
- * @param <T> the type of the parameter to check and return
- * @param object the parameter to check
- * @param message message to populate the NPE with if necessary
- * @return the specified parameter
- * @throws NullPointerException if {@code object} is {@code null}
- * @deprecated Will be removed in 2.5.
- */
- @Deprecated
- public static <T> T requireNonNull(final T object, final String message) {
- return Objects.requireNonNull(object, message);
- }
}