Skip to content

Commit

Permalink
fix the type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Jan 12, 2017
1 parent f611c7f commit 89ef107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/spoon/template/TemplateMatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private CtElement checkListStatements(List<?> teList) {
* @return the matched elements
*/
public <T extends CtElement> List<T> find(final CtElement targetRoot) {
return (List<T>) targetRoot.filterChildren(this).list();
return targetRoot.filterChildren(this).list();
}

/**
Expand Down

0 comments on commit 89ef107

Please sign in to comment.