Skip to content

Commit

Permalink
Remove unnecessary implicit upcast.
Browse files Browse the repository at this point in the history
  • Loading branch information
codingchili committed Aug 18, 2017
1 parent 28d5d0e commit da42edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/main/java/com/codingchili/core/protocol/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ public Protocol(CoreHandler handler) {
}

@SuppressWarnings("unchecked")
private Handler wrap(Object coreHandler, Method method) {
private Handler wrap(CoreHandler handler, Method method) {
return (Handler) new RequestHandler<Request>() {
@Override
public void handle(Request request) {
try {
method.invoke(coreHandler, request);
method.invoke(handler, request);
} catch (InvocationTargetException | IllegalAccessException e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit da42edb

Please sign in to comment.