diff --git a/src/main/java/spoon/reflect/visitor/filter/FieldReferenceFunction.java b/src/main/java/spoon/reflect/visitor/filter/FieldReferenceFunction.java index 91df5eab627..dbd2646f63e 100644 --- a/src/main/java/spoon/reflect/visitor/filter/FieldReferenceFunction.java +++ b/src/main/java/spoon/reflect/visitor/filter/FieldReferenceFunction.java @@ -43,7 +43,7 @@ public FieldReferenceFunction() { public void apply(CtField field, CtConsumer outputConsumer) { field .map(new FieldScopeFunction()) - .filter(new DirectReferenceFilter>(field.getReference())) + .select(new DirectReferenceFilter>(field.getReference())) .forEach(outputConsumer); } }