mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 22:19:43 +00:00
8150077: Due to a javac type inference issue, javadoc doesn't compile with a jdk prior to 8u40
Reviewed-by: jjg
This commit is contained in:
parent
33dcb43fe9
commit
97deaa28b9
@ -176,7 +176,7 @@ public class Utils {
|
||||
List<Element> excludeList = members.stream()
|
||||
.filter((member) -> (!isDeprecated(member)))
|
||||
.sorted(makeGeneralPurposeComparator())
|
||||
.collect(Collectors.toCollection(ArrayList::new));
|
||||
.collect(Collectors.<Element, List<Element>>toCollection(ArrayList::new));
|
||||
return excludeList;
|
||||
}
|
||||
|
||||
|
||||
@ -272,7 +272,7 @@ public class RootDocImpl implements DocletEnvironment {
|
||||
public List<Element> getSelectedElements(List<? extends Element> elements) {
|
||||
return elements.stream()
|
||||
.filter(e -> isIncluded(e))
|
||||
.collect(Collectors.toList());
|
||||
.collect(Collectors.<Element>toList());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user