fix(java) remove clean up steps that causing side effects