void addBridges ( DiagnosticPosition pos , ClassSymbol origin , ListBuffer < JCTree > bridges ) { Type st = types . supertype ( origin . type ) ; while ( st . hasTag ( CLASS ) ) { // if (isSpecialization(st)) addBridges ( pos , st . tsym , origin , bridges ) ; st = types . supertype ( st ) ; } for ( List < Type > l = types . interfaces ( origin . type ) ; l . nonEmpty ( ) ; l = l . tail ) // if (isSpecialization(l.head)) addBridges ( pos , l . head . tsym , origin , bridges ) ; }
Add all necessary bridges to some class appending them to list buffer .