returns a closeguard instance . if closeguard is enabled , #open string can be used to set up the instance to warn onfailure to close . if closeguard is disabled , a non-null no-op instance is returned . concode_field_sep Throwable allocationSite concode_elem_sep CloseGuard NOOP concode_elem_sep Reporter REPORTER concode_elem_sep boolean ENABLED concode_field_sep void setEnabled concode_elem_sep Reporter getReporter concode_elem_sep void warnIfOpen concode_elem_sep void report concode_elem_sep void report concode_elem_sep void setReporter concode_elem_sep void close concode_elem_sep void open
CloseGuard function ( ) { if ( ! ENABLED ) { return NOOP ; } return new CloseGuard ( ) ; }