mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
@NotNull annotations
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user