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 17, 2016
1 parent 7c15bcc commit 13544de
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 13544de

Please sign in to comment.