From a795ee62183aa48dda1bb741b2009c68f827d7b8 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Thu, 2 Oct 2014 20:53:16 +0400 Subject: [PATCH] JS backend minor: added @NotNull annotation to JsBinaryOperation's getOp() --- .../dart/compiler/backend/js/ast/JsBinaryOperation.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/js.dart-ast/src/com/google/dart/compiler/backend/js/ast/JsBinaryOperation.java b/js/js.dart-ast/src/com/google/dart/compiler/backend/js/ast/JsBinaryOperation.java index 3c3c3fae0a4..20ad822f6b7 100644 --- a/js/js.dart-ast/src/com/google/dart/compiler/backend/js/ast/JsBinaryOperation.java +++ b/js/js.dart-ast/src/com/google/dart/compiler/backend/js/ast/JsBinaryOperation.java @@ -11,13 +11,15 @@ import org.jetbrains.annotations.Nullable; public final class JsBinaryOperation extends JsExpressionImpl { private JsExpression arg1; private JsExpression arg2; + + @NotNull private final JsBinaryOperator op; - public JsBinaryOperation(JsBinaryOperator op) { + public JsBinaryOperation(@NotNull JsBinaryOperator op) { this(op, null, null); } - public JsBinaryOperation(JsBinaryOperator op, @Nullable JsExpression arg1, @Nullable JsExpression arg2) { + public JsBinaryOperation(@NotNull JsBinaryOperator op, @Nullable JsExpression arg1, @Nullable JsExpression arg2) { this.op = op; this.arg1 = arg1; this.arg2 = arg2; @@ -39,6 +41,7 @@ public final class JsBinaryOperation extends JsExpressionImpl { this.arg2 = arg2; } + @NotNull public JsBinaryOperator getOperator() { return op; }