Skip to content

Commit

Permalink
Format the code
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Apr 20, 2018
1 parent 967ab7d commit 08e8685
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/hprose/client/HproseClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,17 +546,17 @@ private Promise<Object> invokeHandler(String name, final Object[] args, final Cl
return beforeFilterHandler.handle(stream.buffer, context).then(
new Func<Object, ByteBuffer>() {
public Object call(ByteBuffer value) throws Throwable {
ByteBufferStream stream = new ByteBufferStream(value);
try {
return decode(stream, args, context);
}
finally {
if (settings.getMode() == HproseResultMode.Normal ||
settings.getMode() == HproseResultMode.Serialized ||
settings.getReturnType() == byte[].class) {
stream.close();
ByteBufferStream stream = new ByteBufferStream(value);
try {
return decode(stream, args, context);
}
finally {
if (settings.getMode() == HproseResultMode.Normal ||
settings.getMode() == HproseResultMode.Serialized ||
settings.getReturnType() == byte[].class) {
stream.close();
}
}
}
}
});
}
Expand Down

0 comments on commit 08e8685

Please sign in to comment.