DeprecatedSymbolUsageFix: dealing with vararg's

This commit is contained in:
Valentin Kipyatkov
2015-05-21 18:00:46 +03:00
parent f8a4d9bf0b
commit 97d3620262
48 changed files with 1035 additions and 232 deletions
@@ -66,14 +66,14 @@ public class JetCallExpression extends JetExpressionImpl implements JetCallEleme
@Override
@NotNull
public List<? extends ValueArgument> getValueArguments() {
public List<JetValueArgument> getValueArguments() {
JetValueArgumentList list = getValueArgumentList();
List<JetValueArgument> valueArgumentsInParentheses = list != null ? list.getArguments() : Collections.<JetValueArgument>emptyList();
List<JetFunctionLiteralArgument> functionLiteralArguments = getFunctionLiteralArguments();
if (functionLiteralArguments.isEmpty()) {
return valueArgumentsInParentheses;
}
List<ValueArgument> allValueArguments = Lists.newArrayList();
List<JetValueArgument> allValueArguments = Lists.newArrayList();
allValueArguments.addAll(valueArgumentsInParentheses);
allValueArguments.addAll(functionLiteralArguments);
return allValueArguments;