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
Also added a helper method in the builder called noneValue() to add an empty byte array with data type NONE.
For example, the following two ways of constructing a RSCPData instance holding NONE are equivalent:
RSCPData.builder().tag(RSCPTag.TAG_EMS_REQ_POWER_PV).valueOfType(RSCPDataType.NONE, newbyte[0]).build();
// same asRSCPData.builder().tag(RSCPTag.TAG_EMS_REQ_POWER_PV).noneValue().build();
Validation fails when attempting to build a RSCPData instance with data type of
RSCPDataType.NONE
viaRSCPData.builder().tag(RSCPTag.TAG_EMS_REQ_POWER_PV).valueOfType(RSCPDataType.NONE, new byte[0]).build();
Expected: Can build an instance.
Actual: It throws an
IllegalStateException
with the message: Data must not be empty.The text was updated successfully, but these errors were encountered: