Skip to content

Commit

Permalink
[SCB-833]fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
liubao68 committed Aug 14, 2018
1 parent 38b48ae commit 2196073
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ public boolean isSupport(String key, String value) {
return ACCEPT_KEYS.contains(key) && ACCEPT_VALUES.contains(value);
}

@SuppressWarnings("unchecked")
public RetryHandler createRetryHandler(String retryName, String microservice) {
RetryHandler handler = new DefaultLoadBalancerRetryHandler(
return new DefaultLoadBalancerRetryHandler(
Configuration.INSTANCE.getRetryOnSame(microservice),
Configuration.INSTANCE.getRetryOnNext(microservice), true) {
private List<Class<? extends Throwable>> retriable = Lists
Expand All @@ -70,6 +71,5 @@ protected List<Class<? extends Throwable>> getRetriableExceptions() {
return this.retriable;
}
};
return handler;
}
}

0 comments on commit 2196073

Please sign in to comment.