List has a empty list , but deserialize is null
hello,my test case
Student student = new Student(); student.setId("1"); student.setNames(Lists.newArrayList());
but names deserialize is null, i expect is emptyList , what should i do? thank u ,i am a newcomer
IdStrategy strategy = new DefaultIdStrategy(IdStrategy.DEFAULT_FLAGS | IdStrategy.COLLECTION_SCHEMA_ON_REPEATED_FIELDS ,null,0); schema = RuntimeSchema.createFrom(originClazz, strategy);
IdStrategy.DEFAULT_FLAGS | IdStrategy.COLLECTION_SCHEMA_ON_REPEATED_FIELDS ,null,0
哥们,你的proto-stuff用的是哪个版本?我用的1.1.0没有这两个取值。
可以看下源码里面的pom文件
发自我的iPhone
在 2022年9月29日,14:44,wangsansan @.***> 写道:
IdStrategy.DEFAULT_FLAGS | IdStrategy.COLLECTION_SCHEMA_ON_REPEATED_FIELDS ,null,0
哥们,你的proto-stuff用的是哪个版本?我用的1.1.0没有这两个取值。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.
https://groups.google.com/g/protostuff/c/tYOdTSUvg_Q/m/eHJr6HwmbmoJ