Skip to content

Commit

Permalink
#Issue eclipse-jdt#565 - initial creation of intersection type
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzywanski committed Jul 13, 2024
1 parent 90eafb0 commit f801b1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class IntersectionTypeImpl extends TypeMirrorImpl implements Intersection

IntersectionTypeImpl(BaseProcessingEnvImpl env, TypeVariableBinding binding) {
super(env, binding);
bounds = Arrays.stream(binding.superInterfaces).map(referenceBinding -> this._env.getFactory().newTypeMirror(referenceBinding)).toList();
this.bounds = Arrays.stream(binding.superInterfaces).map(referenceBinding -> this._env.getFactory().newTypeMirror(referenceBinding)).toList();
}

/* (non-Javadoc)
Expand All @@ -55,6 +55,6 @@ public <R, P> R accept(TypeVisitor<R, P> v, P p) {
*/
@Override
public List<? extends TypeMirror> getBounds() {
return bounds;
return this.bounds;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public TypeMirror getUpperBound() {
return this._env.getFactory().newTypeMirror(typeVariableBinding.upperBound());
}
if (superInterfaces.length > 1) {
return new IntersectionTypeImpl(_env, typeVariableBinding);
return new IntersectionTypeImpl(this._env, typeVariableBinding);
}

return this._env.getFactory().newTypeMirror(this._binding);
Expand Down

0 comments on commit f801b1b

Please sign in to comment.