mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 06:15:51 +00:00
fix[generics]: the generic type is incorrectly assigned
This commit is contained in:
1 parent
756882c696
commit
d3c6e40a95
4 files changed
+4
-4
No files matched your search
@@ -174,7 +174,7 @@ public abstract class GeneratePbUtils {
|
||||
}
|
||||
if (pbField.getCardinality() == PbField.Cardinality.REPEATED) {
|
||||
var boxedTypeName = getBoxJavaType(pbField);
|
||||
type = StringUtils.format("List<?>", boxedTypeName);
|
||||
type = StringUtils.format("List<{}>", boxedTypeName);
|
||||
return type;
|
||||
}
|
||||
return getJavaType(type);
|
||||
|
||||
@@ -2,7 +2,7 @@ syntax = "proto3";
|
||||
package test.message;
|
||||
import "one_map.proto";
|
||||
import "one_message.proto";
|
||||
// start_protocol_id = 100
|
||||
// start_protocol_id = 300
|
||||
|
||||
|
||||
// 如果字段的tag超过1000,则视这个字段为需要兼容的协议字段
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package test.message;
|
||||
// start_protocol_id = 200
|
||||
// start_protocol_id = 400
|
||||
|
||||
|
||||
message OneMap {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package test.message;
|
||||
// start_protocol_id = 300
|
||||
// start_protocol_id = 500
|
||||
// 上面这个起始id表示整个文件的协议号从哪个开始
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user