Skip to content

Commit

Permalink
optimized code (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: liujianjun.ljj <liujianjun.ljj@antgroup.com>
  • Loading branch information
EvenLjj and liujianjun.ljj authored Aug 9, 2023
1 parent 2fcc89c commit ff04ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/caucho/hessian/io/Hessian2Input.java
Original file line number Diff line number Diff line change
Expand Up @@ -3391,7 +3391,7 @@ protected IOException expect(String expect, int ch)
if (obj != null) {
return error("expected " + expect
+ " at 0x" + Integer.toHexString(ch & 0xff)
+ " " + obj.getClass().getName() + " (" + obj + ")");
+ " " + obj.getClass().getName());
}
else
return error("expected " + expect
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/caucho/hessian/io/JavaDeserializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ else if (e instanceof IOException)
throw new HessianFieldException(fieldName + ": " + e.getMessage(), e);

if (value != null)
throw new HessianFieldException(fieldName + ": " + value.getClass().getName() + " (" + value + ")"
throw new HessianFieldException(fieldName + ": " + value.getClass().getName()
+ " cannot be assigned to " + field.getType().getName());
else
throw new HessianFieldException(fieldName + ": " + field.getType().getName() +
Expand Down

0 comments on commit ff04ffa

Please sign in to comment.