8172530: JShell: TypeProjection .stream().map(...).collect(...) must be replaced with .map(...)

Reviewed-by: mcimadamore
This commit is contained in:
Robert Field 2017-01-11 11:09:04 -08:00
parent a9a05f2aff
commit 96c8382650

View File

@ -181,9 +181,7 @@ class VarTypePrinter extends TypePrinter {
Type outer = t.getEnclosingType();
Type outer1 = visit(outer, upward);
List<Type> typarams = t.getTypeArguments();
List<Type> typarams1 = typarams.stream()
.map(ta -> mapTypeArgument(ta, upward))
.collect(List.collector());
List<Type> typarams1 = typarams.map(ta -> mapTypeArgument(ta, upward));
if (typarams1.stream().anyMatch(ta -> ta.hasTag(BOT))) {
//not defined
return syms.botType;