Skip to content

Commit

Permalink
fix ImportScanner uses getAccessType too
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Nov 22, 2016
1 parent 8a09bbf commit c4a1d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/spoon/reflect/visitor/ImportScannerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public <T> void visitCtTypeReference(CtTypeReference<T> reference) {
if (reference.getDeclaringType() == null) {
addImport(reference);
} else {
addImport(reference.getDeclaringType());
addImport(reference.getAccessType(targetType));
}
}
super.visitCtTypeReference(reference);
Expand Down

0 comments on commit c4a1d58

Please # to comment.