Skip to content

Commit

Permalink
fix[pb]: the note of class generated by the protobuf protocol is inco…
Browse files Browse the repository at this point in the history
…rrect
  • Loading branch information
jaysunxiao committed Jan 23, 2024
1 parent 9b325f0 commit 59b15db
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ private static String buildMessageImports(PbGenerateOperation pbGenerateOperatio
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())) {
Expand Down

0 comments on commit 59b15db

Please sign in to comment.