Skip to content

Commit

Permalink
Updated comments and javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattias Schaefer committed Mar 27, 2020
1 parent 9b92269 commit 3741a85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/opensky/libadsb/msgs/ModeSReply.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ protected ModeSReply() { }
*
* @param reply the bytes of the reply
* @param noCRC indicates whether the CRC has been subtracted from the parity field
* @throws BadFormatException if message has invalid length or payload does
* not match specification or parity has invalid length
* @throws BadFormatException if message has invalid length or downlink format
*/
public ModeSReply (byte[] reply, boolean noCRC) throws BadFormatException {
// check format invariants
Expand Down Expand Up @@ -186,8 +185,9 @@ public ModeSReply (byte[] reply, boolean noCRC) throws BadFormatException {
System.arraycopy(payload, 0, icao24, 0, 3);
break;
default: // unkown downlink format
// leave everything 0
throw new BadFormatException(String.format("Invalid downlink format %d detected.", downlink_format));
// throw exception
throw new BadFormatException(
String.format("Invalid downlink format %d detected.", downlink_format));
}

setType(subtype.MODES_REPLY);
Expand Down

0 comments on commit 3741a85

Please sign in to comment.