(1) Completed or attempted desertion with intent to avoid hazardous duty or to shirk important service. Dishonorable discharge, forfeiture of all pay and allowances, and confinement for 5 years.
(2) Other cases of completed or attempted desertion.
(a) Terminated by apprehension. Dishonorable discharge, forfeiture of all pay and allowances, and confinement for 3 years.
(b) Terminated otherwise. Dishonorable discharge, forfeiture of all pay and allowances, and confinement for 2 years.
(3) In time of war. Death or such other punishment as a court-martial may direct.