/** * Returns a CloseGuard instance. If CloseGuard is enabled, {@code * #open(String)} can be used to set up the instance to warn on * failure to close. If CloseGuard is disabled, a non-null no-op * instance is returned. */ public static CloseGuard get() { if (!ENABLED) { return NOOP; } return new CloseGuard(); }
/** * Returns a CloseGuard instance. If CloseGuard is enabled, {@code * #open(String)} can be used to set up the instance to warn on * failure to close. If CloseGuard is disabled, a non-null no-op * instance is returned. */ public static CloseGuard get() { if (!ENABLED) { return NOOP; } return new CloseGuard(); }
/** * Returns a CloseGuard instance. If CloseGuard is enabled, {@code * #open(String)} can be used to set up the instance to warn on * failure to close. If CloseGuard is disabled, a non-null no-op * instance is returned. */ public static CloseGuard get() { if (!ENABLED) { return NOOP; } return new CloseGuard(); }
/** * Returns a CloseGuard instance. If CloseGuard is enabled, {@code * #open(String)} can be used to set up the instance to warn on * failure to close. If CloseGuard is disabled, a non-null no-op * instance is returned. */ public static CloseGuard get() { if (!ENABLED) { return NOOP; } return new CloseGuard(); }
/** * Returns a CloseGuard instance. If CloseGuard is enabled, {@code * #open(String)} can be used to set up the instance to warn on * failure to close. If CloseGuard is disabled, a non-null no-op * instance is returned. */ public static CloseGuard get() { if (!ENABLED) { return NOOP; } return new CloseGuard(); }
/** * Returns a CloseGuard instance. If CloseGuard is enabled, {@code * #open(String)} can be used to set up the instance to warn on * failure to close. If CloseGuard is disabled, a non-null no-op * instance is returned. */ public static CloseGuard get() { if (!ENABLED) { return NOOP; } return new CloseGuard(); }
/** * Returns a CloseGuard instance. If CloseGuard is enabled, {@code * #open(String)} can be used to set up the instance to warn on * failure to close. If CloseGuard is disabled, a non-null no-op * instance is returned. */ public static CloseGuard get() { if (!ENABLED) { return NOOP; } return new CloseGuard(); }