mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8030807: langtools should still build using jdk 7
Reviewed-by: briangoetz
This commit is contained in:
parent
4d793c02be
commit
3c77de74be
19 changed files with 48 additions and 40 deletions
|
@ -883,7 +883,7 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
|
|||
public MethodDocImpl findMethod(String methodName, String[] paramTypes) {
|
||||
// Use hash table 'searched' to avoid searching same class twice.
|
||||
//### It is not clear how this could happen.
|
||||
return searchMethod(methodName, paramTypes, new HashSet<>());
|
||||
return searchMethod(methodName, paramTypes, new HashSet<ClassDocImpl>());
|
||||
}
|
||||
|
||||
private MethodDocImpl searchMethod(String methodName,
|
||||
|
@ -1041,7 +1041,7 @@ public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc {
|
|||
* @return the first FieldDocImpl which matches, null if not found.
|
||||
*/
|
||||
public FieldDoc findField(String fieldName) {
|
||||
return searchField(fieldName, new HashSet<>());
|
||||
return searchField(fieldName, new HashSet<ClassDocImpl>());
|
||||
}
|
||||
|
||||
private FieldDocImpl searchField(String fieldName, Set<ClassDocImpl> searched) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue