fix[generics]: the generic type is incorrectly assigned

This commit is contained in:
godotg committed 2023-12-12 18:16:14 +08:00
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);
+1 -1
View File
@@ -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 -1
View File
@@ -1,6 +1,6 @@
syntax = "proto3";
package test.message;
// start_protocol_id = 200
// start_protocol_id = 400
message OneMap {
+1 -1
View File
@@ -1,6 +1,6 @@
syntax = "proto3";
package test.message;
// start_protocol_id = 300
// start_protocol_id = 500
// 上面这个起始id表示整个文件的协议号从哪个开始