Skip to content

Commit

Permalink
fix Object is not a template parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Jul 2, 2017
1 parent ce7eb97 commit 6e02d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/spoon/support/template/Parameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ public static boolean isParameterSource(CtFieldReference<?> ref) {
//the reference to this is not template parameter
return false;
}
if (getTemplateParameterType(ref.getFactory()).isSubtypeOf(ref.getType())) {
//the type of template field is or extends from class TemplateParameter.
if (TemplateParameter.class.getName().equals(ref.getType().getQualifiedName())) {
//the type of template field is TemplateParameter.
return true;
}
return false;
Expand Down

0 comments on commit 6e02d22

Please sign in to comment.