Skip to content

Commit

Permalink
CR: correct javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Remit committed Oct 23, 2023
1 parent 09514db commit 2a96189
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ public int takeNextId() throws NoMessageIdAvailableException {
}

/**
* Provides the requested ID if it is available or some other ID otherwise.
* Takes the requested ID from the range if it is available.
*
* @param id an ID that the caller attempts to take.
* @return the requested {@param id} if it is available in one of the {@link Range} intervals or otherwise some
* other free ID.
*/
public void takeIfAvailable(final int id) {
Preconditions.checkArgument(id >= MIN_ALLOWED_MQTT_PACKET_ID && id <= MAX_ALLOWED_MQTT_PACKET_ID,
Expand Down

0 comments on commit 2a96189

Please sign in to comment.