Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky committed Oct 21, 2017
1 parent f992472 commit 6f93a04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/spoon/reflect/visitor/CtScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,16 @@ public void scan(Collection<? extends CtElement> elements) {
* Generically scans a meta-model element.
*/
public void scan(CtRole role, CtElement element) {
if (element != null) {
element.accept(this);
}
scan(element);
}

/**
* Generically scans a meta-model element.
*/
public void scan(CtElement element) {
scan(null, element);
if (element != null) {
element.accept(this);
}
}

public <A extends Annotation> void visitCtAnnotation(final CtAnnotation<A> annotation) {
Expand Down

0 comments on commit 6f93a04

Please sign in to comment.