private void removeUnsharedReference ( Object obj , int previousHandle ) { if ( previousHandle != - 1 ) { objectsWritten . put ( obj , previousHandle ) ; } else { objectsWritten . remove ( obj ) ; } }
Remove the unshared object from the table and restore any previous handle .