Commit 70648b0e by Dave Syer

Tidy compiler warnings

parent 238c1329
package org.springframework.cloud.netflix.feign; package org.springframework.cloud.netflix.feign;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.FactoryBean;
/** /**
* @author Spencer Gibb * @author Spencer Gibb
*/ */
@Data @Data
@EqualsAndHashCode(callSuper=false)
class FeignClientFactoryBean extends FeignConfiguration implements FactoryBean<Object> { class FeignClientFactoryBean extends FeignConfiguration implements FactoryBean<Object> {
boolean loadbalance; private boolean loadbalance;
Class<?> type; private Class<?> type;
String schemeName; private String schemeName;
@Override @Override
public Object getObject() throws Exception { public Object getObject() throws Exception {
......
...@@ -78,7 +78,7 @@ public class FeignConfiguration { ...@@ -78,7 +78,7 @@ public class FeignConfiguration {
} }
protected <T> T loadBalance(Feign.Builder builder, Class<T> type, String schemeName) { protected <T> T loadBalance(Feign.Builder builder, Class<T> type, String schemeName) {
String name = URI.create(schemeName).getHost(); URI.create(schemeName).getHost();
if(ribbonClient != null) { if(ribbonClient != null) {
return builder.client(ribbonClient).target(type, schemeName); return builder.client(ribbonClient).target(type, schemeName);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment