JS backend minor: added @NotNull annotation to getArguments()

This commit is contained in:
Alexey Tsvetkov
2014-09-25 14:36:53 +04:00
parent 916cfb7051
commit f8968c2f77
2 changed files with 4 additions and 1 deletions
@@ -5,6 +5,7 @@
package com.google.dart.compiler.backend.js.ast;
import com.intellij.util.SmartList;
import org.jetbrains.annotations.NotNull;
import java.util.Arrays;
import java.util.Collections;
@@ -17,7 +18,7 @@ public final class JsInvocation extends JsExpressionImpl.JsExpressionHasArgument
super(new SmartList<JsExpression>());
}
public JsInvocation(JsExpression qualifier, List<JsExpression> arguments) {
public JsInvocation(JsExpression qualifier, @NotNull List<JsExpression> arguments) {
super(arguments);
this.qualifier = qualifier;
}
@@ -35,6 +36,7 @@ public final class JsInvocation extends JsExpressionImpl.JsExpressionHasArgument
this.qualifier = qualifier;
}
@NotNull
@Override
public List<JsExpression> getArguments() {
return arguments;
@@ -99,6 +99,7 @@ public final class ClassTranslator extends AbstractTranslator {
return descriptor.getKind().equals(ClassKind.TRAIT);
}
@NotNull
private List<JsExpression> getClassCreateInvocationArguments(@NotNull TranslationContext declarationContext) {
List<JsExpression> invocationArguments = new ArrayList<JsExpression>();