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:
Volker Simonis 2016-02-17 19:09:44 +01:00
parent 33dcb43fe9
commit 97deaa28b9
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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