This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new 694aea7 Javadoc.
694aea7 is described below
commit 694aea7d937c97c49ffc3cd9bfae4367be73c260
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Dec 12 13:25:42 2021 -0500
Javadoc.
---
.../src/main/java/org/apache/logging/log4j/core/util/JndiCloser.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/JndiCloser.java
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/JndiCloser.java
index 32178f1..58eb4db 100644
---
a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/JndiCloser.java
+++
b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/JndiCloser.java
@@ -35,6 +35,7 @@ public final class JndiCloser {
*
* @param context the JNDI Context to close, may be {@code null}
* @throws NamingException if a problem occurred closing the specified
JNDI Context
+ * @see Context#close()
*/
public static void close(final Context context) throws NamingException {
if (context != null) {
@@ -46,6 +47,8 @@ public final class JndiCloser {
* Closes the specified {@code Context}, ignoring any exceptions thrown by
the close operation.
*
* @param context the JNDI Context to close, may be {@code null}
+ * @return Whether closing succeeded
+ * @see Context#close()
*/
public static boolean closeSilently(final Context context) {
try {