mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
notnull added
This commit is contained in:
+2
-1
@@ -20,6 +20,7 @@ import com.intellij.debugger.engine.evaluation.EvaluateException;
|
||||
import com.intellij.debugger.engine.evaluation.EvaluateExceptionUtil;
|
||||
import com.intellij.debugger.engine.evaluation.EvaluationContextImpl;
|
||||
import com.sun.jdi.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author lex
|
||||
@@ -28,7 +29,7 @@ public class AssignmentEvaluator implements Evaluator{
|
||||
private final Evaluator myLeftEvaluator;
|
||||
private final Evaluator myRightEvaluator;
|
||||
|
||||
public AssignmentEvaluator(Evaluator leftEvaluator, Evaluator rightEvaluator) {
|
||||
public AssignmentEvaluator(@NotNull Evaluator leftEvaluator, @NotNull Evaluator rightEvaluator) {
|
||||
myLeftEvaluator = leftEvaluator;
|
||||
myRightEvaluator = new DisableGC(rightEvaluator);
|
||||
}
|
||||
|
||||
+6
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,6 +31,7 @@ import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.psi.JavaTokenType;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.sun.jdi.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class BinaryExpressionEvaluator implements Evaluator {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.debugger.engine.evaluation.expression.BinaryExpressionEvaluator");
|
||||
@@ -39,7 +40,10 @@ class BinaryExpressionEvaluator implements Evaluator {
|
||||
private final IElementType myOpType;
|
||||
private final String myExpectedType; // a result of PsiType.getCanonicalText()
|
||||
|
||||
public BinaryExpressionEvaluator(Evaluator leftOperand, Evaluator rightOperand, IElementType opType, String expectedType) {
|
||||
public BinaryExpressionEvaluator(@NotNull Evaluator leftOperand,
|
||||
@NotNull Evaluator rightOperand,
|
||||
@NotNull IElementType opType,
|
||||
String expectedType) {
|
||||
myLeftOperand = new DisableGC(leftOperand);
|
||||
myRightOperand = new DisableGC(rightOperand);
|
||||
myOpType = opType;
|
||||
|
||||
Reference in New Issue
Block a user