我正在开发一个项目,其中类的变量上面有@Tag注释。它的功能是什么?
看起来像这样
@Tag(10)
private GroupNavigationSRO groups;
@Tag(16)
private String redirectedQuery;
@Tag(17)
private GetGuidedSearchResponse guidedSearchResponse ;
我尝试在网上搜索但找不到任何相关的答案
答案 0 :(得分:2)
我怀疑这是“protostuff”库定义的io.protostuff.Tag
类。如果是,那么this page会解释@Tag(number)
是一种在序列化中设置字段编号的明确方法。