langtools/src/share/classes/com/sun/tools/javac/api/JavacTrees.java
changeset 22163 3651128c74eb
parent 19125 db8cab0ecbd9
child 22165 ec53c8946fc2
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
   396 
   396 
   397             final List<Type> paramTypes;
   397             final List<Type> paramTypes;
   398             if (ref.paramTypes == null)
   398             if (ref.paramTypes == null)
   399                 paramTypes = null;
   399                 paramTypes = null;
   400             else {
   400             else {
   401                 ListBuffer<Type> lb = new ListBuffer<Type>();
   401                 ListBuffer<Type> lb = new ListBuffer<>();
   402                 for (List<JCTree> l = ref.paramTypes; l.nonEmpty(); l = l.tail) {
   402                 for (List<JCTree> l = ref.paramTypes; l.nonEmpty(); l = l.tail) {
   403                     JCTree tree = l.head;
   403                     JCTree tree = l.head;
   404                     Type t = attr.attribType(tree, env);
   404                     Type t = attr.attribType(tree, env);
   405                     lb.add(t);
   405                     lb.add(t);
   406                 }
   406                 }
   457         return null;
   457         return null;
   458     }
   458     }
   459 
   459 
   460     /** @see com.sun.tools.javadoc.ClassDocImpl#findField */
   460     /** @see com.sun.tools.javadoc.ClassDocImpl#findField */
   461     private VarSymbol findField(ClassSymbol tsym, Name fieldName) {
   461     private VarSymbol findField(ClassSymbol tsym, Name fieldName) {
   462         return searchField(tsym, fieldName, new HashSet<ClassSymbol>());
   462         return searchField(tsym, fieldName, new HashSet<>());
   463     }
   463     }
   464 
   464 
   465     /** @see com.sun.tools.javadoc.ClassDocImpl#searchField */
   465     /** @see com.sun.tools.javadoc.ClassDocImpl#searchField */
   466     private VarSymbol searchField(ClassSymbol tsym, Name fieldName, Set<ClassSymbol> searched) {
   466     private VarSymbol searchField(ClassSymbol tsym, Name fieldName, Set<ClassSymbol> searched) {
   467         if (searched.contains(tsym)) {
   467         if (searched.contains(tsym)) {
   523         return null;
   523         return null;
   524     }
   524     }
   525 
   525 
   526     /** @see com.sun.tools.javadoc.ClassDocImpl#findMethod */
   526     /** @see com.sun.tools.javadoc.ClassDocImpl#findMethod */
   527     private MethodSymbol findMethod(ClassSymbol tsym, Name methodName, List<Type> paramTypes) {
   527     private MethodSymbol findMethod(ClassSymbol tsym, Name methodName, List<Type> paramTypes) {
   528         return searchMethod(tsym, methodName, paramTypes, new HashSet<ClassSymbol>());
   528         return searchMethod(tsym, methodName, paramTypes, new HashSet<>());
   529     }
   529     }
   530 
   530 
   531     /** @see com.sun.tools.javadoc.ClassDocImpl#searchMethod */
   531     /** @see com.sun.tools.javadoc.ClassDocImpl#searchMethod */
   532     private MethodSymbol searchMethod(ClassSymbol tsym, Name methodName,
   532     private MethodSymbol searchMethod(ClassSymbol tsym, Name methodName,
   533                                        List<Type> paramTypes, Set<ClassSymbol> searched) {
   533                                        List<Type> paramTypes, Set<ClassSymbol> searched) {