|
Lines 577-585
void computeInheritedMethods(ReferenceBinding superclass, ReferenceBinding[] sup
Link Here
|
| 577 |
|
577 |
|
| 578 |
List superIfcList = new ArrayList(); |
578 |
List superIfcList = new ArrayList(); |
| 579 |
HashSet seenTypes = new HashSet(); |
579 |
HashSet seenTypes = new HashSet(); |
|
|
580 |
collectAllDistinctSuperInterfaces(superclass, seenTypes, superIfcList); |
| 580 |
collectAllDistinctSuperInterfaces(superInterfaces, seenTypes, superIfcList); |
581 |
collectAllDistinctSuperInterfaces(superInterfaces, seenTypes, superIfcList); |
| 581 |
if (superclass != null) |
|
|
| 582 |
collectAllDistinctSuperInterfaces(superclass.superInterfaces(), seenTypes, superIfcList); |
| 583 |
if (superIfcList.size() == 0) return; |
582 |
if (superIfcList.size() == 0) return; |
| 584 |
|
583 |
|
| 585 |
if (superIfcList.size() == 1) { |
584 |
if (superIfcList.size() == 1) { |
|
Lines 620-625
void computeInheritedMethods(ReferenceBinding superclass, ReferenceBinding[] sup
Link Here
|
| 620 |
} |
619 |
} |
| 621 |
} |
620 |
} |
| 622 |
|
621 |
|
|
|
622 |
void collectAllDistinctSuperInterfaces(ReferenceBinding superType, Set seen, List result) { |
| 623 |
// use 'seen' to avoid duplicates, use result to maintain stable order |
| 624 |
if (superType == null) { |
| 625 |
return; |
| 626 |
} |
| 627 |
collectAllDistinctSuperInterfaces(superType.superInterfaces(), seen, result); |
| 628 |
ReferenceBinding superSuperType = superType.superclass(); |
| 629 |
if (superSuperType != null) { |
| 630 |
collectAllDistinctSuperInterfaces(superSuperType, seen, result); |
| 631 |
} |
| 632 |
} |
| 633 |
|
| 623 |
void collectAllDistinctSuperInterfaces(ReferenceBinding[] superInterfaces, Set seen, List result) { |
634 |
void collectAllDistinctSuperInterfaces(ReferenceBinding[] superInterfaces, Set seen, List result) { |
| 624 |
// use 'seen' to avoid duplicates, use result to maintain stable order |
635 |
// use 'seen' to avoid duplicates, use result to maintain stable order |
| 625 |
int length = superInterfaces.length; |
636 |
int length = superInterfaces.length; |