Skip to content

Commit

Permalink
Try to fix some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
surli committed Jun 29, 2018
1 parent 7552b7e commit 8c991cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/spoon/reflect/visitor/ImportScannerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ public <T> void visitCtFieldRead(CtFieldRead<T> fieldRead) {
@Override
public <T> void visitCtFieldReference(CtFieldReference<T> reference) {
enter(reference);
scan(reference.getDeclaringType());
if (reference.isStatic()) {
addFieldImport(reference);
if (!addFieldImport(reference)) {
scan(reference.getDeclaringType());
}
} else {
scan(reference.getDeclaringType());
}
Expand Down

0 comments on commit 8c991cd

Please sign in to comment.