diff --git a/api/src/main/java/com/alibaba/nacos/api/ability/register/impl/ClientAbilities.java b/api/src/main/java/com/alibaba/nacos/api/ability/register/impl/ClientAbilities.java index 533f4ecdd..3a5a796ce 100644 --- a/api/src/main/java/com/alibaba/nacos/api/ability/register/impl/ClientAbilities.java +++ b/api/src/main/java/com/alibaba/nacos/api/ability/register/impl/ClientAbilities.java @@ -40,8 +40,8 @@ public class ClientAbilities extends AbstractAbilityRegistry { * DATA_COMPRESSION("compression", 1) * This field can be used outside, and the offset should be unique. * - * And then you need to declare the offset of the flag bit of this ability in the ability table, you can: - * supportedAbilities.put(AbilityKey.DATA_COMPRESSION, true); means that is the first bit from left to right in the table. + * And then you need to declare whether turn on in the ability table, you can: + * supportedAbilities.put(AbilityKey.DATA_COMPRESSION, true); means that current client support AbilityKey.DATA_COMPRESSION. * */ // put ability here, which you want current client supports diff --git a/api/src/main/java/com/alibaba/nacos/api/ability/register/impl/ServerAbilities.java b/api/src/main/java/com/alibaba/nacos/api/ability/register/impl/ServerAbilities.java index ca4597a4f..66a6fbfa0 100644 --- a/api/src/main/java/com/alibaba/nacos/api/ability/register/impl/ServerAbilities.java +++ b/api/src/main/java/com/alibaba/nacos/api/ability/register/impl/ServerAbilities.java @@ -40,8 +40,8 @@ public class ServerAbilities extends AbstractAbilityRegistry { * DATA_COMPRESSION("compression", 1) * This field can be used outside, and the offset should be unique. * - * And then you need to declare the offset of the flag bit of this ability in the ability table, you can: - * supportedAbilities.put(AbilityKey.DATA_COMPRESSION, true); means that is the first bit from left to right in the table. + * And then you need to declare whether turn on in the ability table, you can: + * supportedAbilities.put(AbilityKey.DATA_COMPRESSION, true); means that current client support AbilityKey.DATA_COMPRESSION. * */ // put ability here, which you want current server supports