public void clearHandleList ( ) { final boolean isTracingEnabled = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTracingEnabled && tc . isDebugEnabled ( ) ) { Tr . debug ( this , tc , "Clear the McWrapper handlelist for the following MCWrapper: " + this ) ; } // since we know we are only in this method on a destroy or clean up // of a MCWrapper ,we can double check that all the handles that this MCWrapper // owns are removed from the handlelist on thread local storage before clearing the // handlelist in the MCWrapper class. I tried to be really careful to avoid NPEs // // Liberty doesn't have real HandleList so don't need to remove anything // mcwHandleList . clear ( ) ; }
clear the handle list