|
|
|
@ -17,6 +17,7 @@ package feign;
@@ -17,6 +17,7 @@ package feign;
|
|
|
|
|
|
|
|
|
|
import java.lang.annotation.Annotation; |
|
|
|
|
import java.lang.reflect.Method; |
|
|
|
|
import java.lang.reflect.Modifier; |
|
|
|
|
import java.net.URI; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Collection; |
|
|
|
@ -55,7 +56,8 @@ public interface Contract {
@@ -55,7 +56,8 @@ public interface Contract {
|
|
|
|
|
} |
|
|
|
|
Map<String, MethodMetadata> result = new LinkedHashMap<String, MethodMetadata>(); |
|
|
|
|
for (Method method : targetType.getMethods()) { |
|
|
|
|
if (method.getDeclaringClass() == Object.class) { |
|
|
|
|
if (method.getDeclaringClass() == Object.class || |
|
|
|
|
(method.getModifiers() & Modifier.STATIC) != 0) { |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
MethodMetadata metadata = parseAndValidateMetadata(targetType, method); |
|
|
|
|