mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 12:15:15 +00:00
fix[pb]: missing package definition
This commit is contained in:
1 parent
6a117331c5
commit
265f625934
1 file changed
+3
@@ -231,6 +231,9 @@ public abstract class GeneratePbUtils {
|
||||
public static String buildMessage(PbGenerateOperation pbGenerateOperation, List<Proto> protos, Proto proto, PbMessage pbMessage) {
|
||||
var builder = new StringBuilder();
|
||||
|
||||
// package definition
|
||||
builder.append(StringUtils.format("package {};", pbGenerateOperation.getJavaPackage())).append(LS).append(LS);
|
||||
|
||||
// import other class
|
||||
var imports = buildMessageImports(pbGenerateOperation, protos, proto, pbMessage);
|
||||
builder.append(imports);
|
||||
|
||||
Reference in new issue
Block a user