You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When serializing HJ212 data to string, some Integer properties of the Data type are missing, such as CpData. And I simply add edif to the code to determine whether value instanceof Integer, also set key value. In addition, the check of the validate EL does not seem to work in serialization, for example: I will cpData.setRtd Interval (0); According to the check should be false, but not.
(机翻, 抱歉哈, 英文不太好)
At last, Thank you very much to open source your idea and code.
放假了,电脑没在手边,我大概说一下问题,就是cpData的属性如果是Integer类型时,序列化就会丢失,我在分类区分的时候,除了string类型和map类型加了一个Integer类型,解决了这个问题。另外,在序列化污染物的字段时,有点小问题,会出现xxxx-字段名-字段名-字段名,这种情况,我在stream流的截取名字的时候改成(0,1)这种形式,只截取污染因子的名字,也算解决了这个问题 梁陈洲 邮箱:[email protected] 签名由 网易邮箱大师 定制 在2019年10月05日 10:45,xiaoyao9184 写道: @laoLiangLoveProgram 可以提供一下你的代码吗? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
When serializing HJ212 data to string, some Integer properties of the Data type are missing, such as CpData. And I simply add edif to the code to determine whether value instanceof Integer, also set key value. In addition, the check of the validate EL does not seem to work in serialization, for example: I will cpData.setRtd Interval (0); According to the check should be false, but not.
(机翻, 抱歉哈, 英文不太好)
At last, Thank you very much to open source your idea and code.
序列化一组数据到字符串时, Data类型的一些Integer属性丢失, CpData同样也是, 我在代码上 简单的又加了 if 判断, 当 instanceof Integer , 同样设置 key value.
另外, validate 的 校验 好像在序列化时不起作用, 例如: 我将 cpData.setRtdInterval(0); 按照校验应该是报错的, 但是并没有. 请问如何设置, 才能使校验起到效果
非常感谢作者能够开源自己的想法和代码, 再次感谢
The text was updated successfully, but these errors were encountered: