Samuel Johnson: Which Is Worse, Jail or the British Navy?

No man will be a sailor who has contrivance enough to get himself into a jail; for being in a ship is being in a jail, with the chance of being drowned … A man in a jail has more room, better food, and commonly better company.

Source

(How this fits with his own life, I don’t know.)