Skip to content

[Internal] org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.memberTypes computation code could be simpler. #4841

@srikanth-sankaran

Description

@srikanth-sankaran

While working on #4823 I notice that the code and interaction between these methods:

org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.memberTypes()
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.setMemberTypes(ReferenceBinding[])
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.sortedMemberTypes()

makes for somewhat complicated reading and can be simplified quite a bit.

In particular, it is not clear we need org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.memberTypesSorted at all, this should/could be subsumed by TagBits.HasUnresolvedMemberTypes itself.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions