Tidy compiler warnings

This commit is contained in:
Dave Syer
2014-12-15 17:10:29 +00:00
parent 238c1329c4
commit 70648b0ec0
2 changed files with 7 additions and 4 deletions

View File

@@ -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 {

View File

@@ -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 {