Skip to content

Commit

Permalink
optimized code
Browse files Browse the repository at this point in the history
  • Loading branch information
liujianjun.ljj committed Aug 18, 2023
1 parent 2e41743 commit 004b82d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/caucho/hessian/server/HessianSkeleton.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public HessianSkeleton(Object service, Class apiClass)
_service = service;

if (!apiClass.isAssignableFrom(service.getClass()))
throw new IllegalArgumentException("Service " + service.getClass().getName() + " must be an instance of " + apiClass.getName());
throw new IllegalArgumentException("Service " + service.getClass().getName() + " must be an instance of " +
apiClass.getName());

Check warning on line 86 in src/main/java/com/caucho/hessian/server/HessianSkeleton.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/com/caucho/hessian/server/HessianSkeleton.java#L85-L86

Added lines #L85 - L86 were not covered by tests
}

/**
Expand Down

0 comments on commit 004b82d

Please sign in to comment.