Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomassetti committed Oct 22, 2016
1 parent c424c31 commit a631891
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ public MethodUsage(MethodDeclaration declaration, List<Type> paramTypes, Type re
this.returnType = returnType;
}

private static Type replaceTypeParameterByName(String name, Type newValue, Type typeToBeExamined) {
return typeToBeExamined.replaceParam(name, newValue);
}

@Override
public String toString() {
return "MethodUsage{" +
Expand Down Expand Up @@ -127,7 +123,7 @@ public MethodUsage replaceTypeParameterByName(String name, Type type) {
Type newParamType = originalParamType.replaceParam(name, type);
res = res.replaceParamType(i, newParamType);
}
res = res.replaceReturnType(replaceTypeParameterByName(name, type, res.returnType));
res = res.replaceReturnType(res.returnType.replaceParam(name, type));
return res;
}

Expand Down

0 comments on commit a631891

Please sign in to comment.