fixed some test error

This commit is contained in:
free will committed 2021-03-22 21:51:38 +08:00
1 parent fc3671ea00
commit 5785f29ec3
12 files changed
+118 -59

No files matched your search

+2 -2
View File
@@ -51,7 +51,7 @@ public class CPacket implements InteractWithField, IEncodingAble {
* @return
*/
@Override
public boolean fillDataToFields() throws EncoderException{
public boolean fillDataToFields() throws EncoderException, BlockException {
// 可变区 => 受保护区(无)
// 填充可变区 => 非受保护区
@@ -128,7 +128,7 @@ public class CPacket implements InteractWithField, IEncodingAble {
* @return
*/
@Override
public int wireEncode(Encoder encoder) throws EncoderException {
public int wireEncode(Encoder encoder) throws EncoderException, BlockException {
// 首先将属性填充到分区当中
if(!this.fillDataToFields()){
return 0;