mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 18:17:02 +00:00
fix[pb]: the note of class generated by the protobuf protocol is incorrect
This commit is contained in:
1 parent
9b325f0ada
commit
59b15dba6d
1 file changed
+4
@@ -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())) {
|
||||
|
||||
Reference in new issue
Block a user