fix[pb]: the note of class generated by the protobuf protocol is incorrect

This commit is contained in:
godotg
2024-01-23 16:57:55 +08:00
parent 9b325f0ada
commit 59b15dba6d
@@ -252,6 +252,10 @@ public abstract class GeneratePbUtils {
var imports = new HashSet<String>();
imports.add(Protocol.class.getName());
if (CollectionUtils.isNotEmpty(pbMessage.getComments())) {
imports.add(Note.class.getName());
}
var pbFields = pbMessage.getFields();
for (var pbField : pbFields) {
if (CollectionUtils.isNotEmpty(pbField.getComments())) {