Skip to content

Commit

Permalink
delete useless class && modify exception throws type && upgrade versi…
Browse files Browse the repository at this point in the history
…on of jackson-databind
  • Loading branch information
YangruiEmma committed Jul 19, 2019
1 parent 7689fab commit 551fe66
Show file tree
Hide file tree
Showing 74 changed files with 10 additions and 46,268 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public abstract class OctoCodec implements Codec {
private static final String ATTACH_INFO_SERIALIZE_CODE = "serializeCode";

@Override
public byte[] encode(Channel channel, Object message, Map<String, Object> attachments) throws IOException {
public byte[] encode(Channel channel, Object message, Map<String, Object> attachments) throws ProtocolException {
Object obj;
byte[] bodyBytes = new byte[0];
if (message instanceof DefaultRequest) {
Expand Down Expand Up @@ -120,7 +120,7 @@ public byte[] encode(Channel channel, Object message, Map<String, Object> attach
}

@Override
public Object decode(Channel channel, byte[] buffer, Map<String, Object> attachments) throws IOException {
public Object decode(Channel channel, byte[] buffer, Map<String, Object> attachments) throws ProtocolException {
if (buffer.length < PACKAGE_HEAD_LENGTH) {
throw new ProtocolException("Message length less than header length");
}
Expand Down
Loading

0 comments on commit 551fe66

Please sign in to comment.