Tidy compiler warnings
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
package org.springframework.cloud.netflix.feign;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import org.springframework.beans.factory.FactoryBean;
|
||||
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper=false)
|
||||
class FeignClientFactoryBean extends FeignConfiguration implements FactoryBean<Object> {
|
||||
|
||||
boolean loadbalance;
|
||||
Class<?> type;
|
||||
String schemeName;
|
||||
private boolean loadbalance;
|
||||
private Class<?> type;
|
||||
private String schemeName;
|
||||
|
||||
@Override
|
||||
public Object getObject() throws Exception {
|
||||
|
||||
@@ -78,7 +78,7 @@ public class FeignConfiguration {
|
||||
}
|
||||
|
||||
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) {
|
||||
return builder.client(ribbonClient).target(type, schemeName);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user