fix scala 2.12 build (#690)

This commit is contained in:
PJ Fanning 2023-09-28 16:52:32 +01:00 committed by GitHub
parent d15f18f802
commit 6f52c85d0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,7 +118,7 @@ abstract class HashCodeNoEnvelopeMessageExtractor[M](val numberOfShards: Int) ex
*
* @param entityId The business domain identifier of the entity.
* @param message The message to be send to the entity.
* @throws pekko.actor.InvalidMessageException if message is null.
* @throws [[pekko.actor.InvalidMessageException]] if message is null.
*/
final case class ShardingEnvelope[M](entityId: String, message: M) extends WrappedMessage {
if (message == null) throw InvalidMessageException("[null] is not an allowed message")