@ Nonnull public static < T extends Disposable > T assertNotDisposed ( @ Nonnull final T disposable ) { if ( disposable . isDisposed ( ) ) { final AlreadyDisposedError error = new AlreadyDisposedError ( "Object already disposed" ) ; MetaErrorListeners . fireError ( "Asserion error" , error ) ; throw error ; } return disposable ; }
Assert that a disposable object is not disposed .