Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List<Integer> 类型支持 #14

Closed
amsz opened this issue Feb 12, 2015 · 2 comments
Closed

List<Integer> 类型支持 #14

amsz opened this issue Feb 12, 2015 · 2 comments

Comments

@amsz
Copy link

amsz commented Feb 12, 2015

集合不支持没有构造函数的对象类型,例如List,初始化时报错。

原生的protobuf是可以支持的:repeated int32 xxx = 1;

@jhunters
Copy link
Owner

List 类型是完全支持了,具体使用可以详见 test代码中的 simplerepeat包下RequrieRepeatedNumberType2Test 这个类,他就针对List 方式的使用测试

@amsz
Copy link
Author

amsz commented Feb 12, 2015

看到了,需要定义fieldType = FieldType.INT32,谢谢~

@amsz amsz closed this as completed Feb 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants