This is an automated email from the ASF dual-hosted git repository. jinrongtong pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push: new c06facf089 [ISSUE #7102] Making perm equal to 0 is valid c06facf089 is described below commit c06facf08939772f81fffde72d14746d3a9384f2 Author: rongtong <jinrongto...@163.com> AuthorDate: Thu Aug 3 11:39:24 2023 +0800 [ISSUE #7102] Making perm equal to 0 is valid --- common/src/main/java/org/apache/rocketmq/common/constant/PermName.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/apache/rocketmq/common/constant/PermName.java b/common/src/main/java/org/apache/rocketmq/common/constant/PermName.java index d7c76b4c0e..d87461d7f5 100644 --- a/common/src/main/java/org/apache/rocketmq/common/constant/PermName.java +++ b/common/src/main/java/org/apache/rocketmq/common/constant/PermName.java @@ -62,7 +62,7 @@ public class PermName { } public static boolean isValid(final int perm) { - return perm >= PERM_INHERIT && perm < PERM_PRIORITY; + return perm >= 0 && perm < PERM_PRIORITY; } public static boolean isPriority(final int perm) {