@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value="SF_SWITCH_NO_DEFAULT",justification="covers all possible values") static void appendClockMessage(MrcMessage m,StringBuilder txt){
  int clockModeBits=m.getElement(2) & 0xC0;
switch (clockModeBits) {
case 0x00:
    txt.append((m.getElement(2) & 0x1F) + Bundle.getMessage("MrcPacketsClockTimeSep") + twoDigits.format(m.getElement(4))+ Bundle.getMessage("MrcPacketsClockModeAm"));
  break;
case 0x40:
txt.append((m.getElement(2) & 0x1F) + Bundle.getMessage("MrcPacketsClockTimeSep") + twoDigits.format(m.getElement(4))+ Bundle.getMessage("MrcPacketsClockModePm"));
break;
case 0x80:
txt.append(twoDigits.format(m.getElement(2) & 0x1F) + Bundle.getMessage("MrcPacketsClockTimeSep") + twoDigits.format(m.getElement(4))+ Bundle.getMessage("MrcPacketsClockMode24"));
break;
case 0xC0:
txt.append(twoDigits.format(m.getElement(2) & 0x1F) + Bundle.getMessage("MrcPacketsClockTimeSep") + twoDigits.format(m.getElement(4))+ Bundle.getMessage("MrcPacketsClockModeUnk"));
break;
}
}

@ edu . umd . cs . findbugs . annotations . SuppressFBWarnings ( value = "SF_SWITCH_NO_DEFAULT" , justification = "covers all possible values" ) static void appendClockMessage ( MrcMessage m , StringBuilder txt ) { int clockModeBits = m . getElement ( 2 ) & 0xC0 ; switch ( clockModeBits ) { case 0x00 : txt . append ( ( m . getElement ( 2 ) & 0x1F ) + Bundle . getMessage ( "MrcPacketsClockTimeSep" ) + twoDigits . format ( m . getElement ( 4 ) ) + Bundle . getMessage ( "MrcPacketsClockModeAm" ) ) ; break ; case 0x40 : txt . append ( ( m . getElement ( 2 ) & 0x1F ) + Bundle . getMessage ( "MrcPacketsClockTimeSep" ) + twoDigits . format ( m . getElement ( 4 ) ) + Bundle . getMessage ( "MrcPacketsClockModePm" ) ) ; break ; case 0x80 : txt . append ( twoDigits . format ( m . getElement ( 2 ) & 0x1F ) + Bundle . getMessage ( "MrcPacketsClockTimeSep" ) + twoDigits . format ( m . getElement ( 4 ) ) + Bundle . getMessage ( "MrcPacketsClockMode24" ) ) ; break ; case 0xC0 : txt . append ( twoDigits . format ( m . getElement ( 2 ) & 0x1F ) + Bundle . getMessage ( "MrcPacketsClockTimeSep" ) + twoDigits . format ( m . getElement ( 4 ) ) + Bundle . getMessage ( "MrcPacketsClockModeUnk" ) ) ; break ; } }
adds the description of the clock ' s mode to a message being built
