523 Type bound = t.bound; |
523 Type bound = t.bound; |
524 while ((bound instanceof ErrorType)) |
524 while ((bound instanceof ErrorType)) |
525 bound = ((ErrorType)bound).getOriginalType(); |
525 bound = ((ErrorType)bound).getOriginalType(); |
526 //retrieve the bound list - if the type variable |
526 //retrieve the bound list - if the type variable |
527 //has not been attributed the bound is not set |
527 //has not been attributed the bound is not set |
528 List<Type> bounds = bound != null ? |
528 List<Type> bounds = (bound != null) && |
|
529 (bound.hasTag(CLASS) || bound.hasTag(TYPEVAR)) ? |
529 types.getBounds(t) : |
530 types.getBounds(t) : |
530 List.<Type>nil(); |
531 List.<Type>nil(); |
531 |
532 |
532 nameSimplifier.addUsage(t.tsym); |
533 nameSimplifier.addUsage(t.tsym); |
533 |
534 |