mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-06 20:26:05 +00:00
fix[pb]: the note of class generated by the protobuf protocol is incorrect
This commit is contained in:
@@ -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