31 . Every witness at a summary trial of an offender by a naval officer exercising judicial powers under this Act shall, before giving evidence, take or make the same oath or affirmation as that required to be taken or made by a witness before a court martial. *Witnesses at summary trials evidence on oath or affirmation.*