feat: V1.1 - 注释补充

This commit is contained in:
2026-08-03 14:24:41 +08:00
parent a41176c6ce
commit 7cbbfae503
23 changed files with 158 additions and 23 deletions

View File

@@ -36,6 +36,7 @@ public class WritePoint {
return keyExpression == null ? "" : keyExpression.replaceAll("\\s+", "");
}
/** @return 是否为 MQ 通道RocketMQ / Kafka */
public boolean isMq() {
return CHANNEL_ROCKETMQ.equals(channel) || CHANNEL_KAFKA.equals(channel);
}
@@ -136,6 +137,9 @@ public class WritePoint {
this.channel = channel == null || channel.isEmpty() ? CHANNEL_REDIS : channel;
}
/**
* @return 展示用写入位置,形如 {@code SimpleClass#method:line}
*/
public String location() {
String simpleClass = enclosingClass;
if (simpleClass != null && simpleClass.contains(".")) {