@NotNull annotations

This commit is contained in:
Daniil Ovchinnikov
2015-02-25 19:21:58 +03:00
parent 46e2843e3d
commit 210ca9eab1
4 changed files with 4 additions and 4 deletions
@@ -67,5 +67,5 @@ public abstract class GroovyLocalInspectionBase extends GroovySuppressableInspec
});
}
protected abstract void check(GrControlFlowOwner owner, ProblemsHolder problemsHolder);
protected abstract void check(@NotNull GrControlFlowOwner owner, @NotNull ProblemsHolder problemsHolder);
}
@@ -96,7 +96,7 @@ public class GroovyVariableCanBeFinalInspection extends GroovyLocalInspectionBas
}
@Override
public void check(final GrControlFlowOwner owner, final ProblemsHolder problemsHolder) {
public void check(@NotNull final GrControlFlowOwner owner, @NotNull final ProblemsHolder problemsHolder) {
final Instruction[] flow = owner.getControlFlow();
final DFAEngine<TObjectIntHashMap<GrVariable>> engine = new DFAEngine<TObjectIntHashMap<GrVariable>>(
flow,
@@ -88,7 +88,7 @@ public class UnassignedVariableAccessInspection extends GroovyLocalInspectionBas
}
@Override
protected void check(GrControlFlowOwner owner, ProblemsHolder problemsHolder) {
protected void check(@NotNull GrControlFlowOwner owner, @NotNull ProblemsHolder problemsHolder) {
Instruction[] flow = owner.getControlFlow();
ReadWriteVariableInstruction[] reads = ControlFlowBuilderUtil.getReadsWithoutPriorWrites(flow, true);
for (ReadWriteVariableInstruction read : reads) {
@@ -85,7 +85,7 @@ public class UnusedDefInspection extends GroovyLocalInspectionBase {
@Override
protected void check(final GrControlFlowOwner owner, final ProblemsHolder problemsHolder) {
protected void check(@NotNull final GrControlFlowOwner owner, @NotNull final ProblemsHolder problemsHolder) {
final Instruction[] flow = owner.getControlFlow();
final ReachingDefinitionsDfaInstance dfaInstance = new ReachingDefinitionsDfaInstance(flow);
final ReachingDefinitionsSemilattice lattice = new ReachingDefinitionsSemilattice();