/*
 * Decompiled with CFR 0.152.
 */
package org.apache.logging.log4j.core.util;

import javax.naming.Context;
import javax.naming.NamingException;

public class JndiCloser {
    public static void close(Context context) throws NamingException {
        if (context != null) {
            context.close();
        }
    }

    public static void closeSilently(Context context) {
        try {
            JndiCloser.close(context);
        }
        catch (NamingException namingException) {
            // empty catch block
        }
    }
}
