Take inherited setters into account

This commit is contained in:
Andrey Breslav
2015-01-23 15:41:42 +03:00
parent 483e20affc
commit d016aa8f4d
@@ -67,7 +67,7 @@ public class Dependencies {
DiType typeToInitialize = InjectorGeneratorUtil.getEffectiveFieldType(field);
// Sort setters in order to get deterministic behavior
List<Method> declaredMethods = Lists.newArrayList(typeToInitialize.getClazz().getDeclaredMethods());
List<Method> declaredMethods = Lists.newArrayList(typeToInitialize.getClazz().getMethods());
Collections.sort(declaredMethods, new Comparator<Method>() {
@Override
public int compare(@NotNull Method o1, @NotNull Method o2) {