From a7e77d282a46cd1a89bd93e270e8c8a0051c34a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E6=B5=AA?= Date: Thu, 23 May 2019 17:34:22 +0800 Subject: [PATCH] modify exception declaration modify "TimeDelayLevel in not supported for batching" --- .../java/org/apache/rocketmq/common/message/MessageBatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/apache/rocketmq/common/message/MessageBatch.java b/common/src/main/java/org/apache/rocketmq/common/message/MessageBatch.java index ca2ce88e..a6b801ed 100644 --- a/common/src/main/java/org/apache/rocketmq/common/message/MessageBatch.java +++ b/common/src/main/java/org/apache/rocketmq/common/message/MessageBatch.java @@ -46,7 +46,7 @@ public class MessageBatch extends Message implements Iterable { Message first = null; for (Message message : messages) { if (message.getDelayTimeLevel() > 0) { - throw new UnsupportedOperationException("TimeDelayLevel in not supported for batching"); + throw new UnsupportedOperationException("TimeDelayLevel is not supported for batching"); } if (message.getTopic().startsWith(MixAll.RETRY_GROUP_TOPIC_PREFIX)) { throw new UnsupportedOperationException("Retry Group is not supported for batching"); -- GitLab