[vcs-log] replace incorrect Nullable annotations with NotNull

GitOrigin-RevId: 897ccecadbaeb69211bcd0fab5e670f20f5c9ced
This commit is contained in:
Julia Beliaeva
2020-06-16 12:07:15 +03:00
committed by intellij-monorepo-bot
parent d4978ffa27
commit 53ce54df5c
3 changed files with 5 additions and 10 deletions
@@ -197,9 +197,8 @@ final class CollapsedActionManager {
};
private final static ActionCase EXPAND_ALL = new ActionCase() {
@Nullable
@Override
public LinearGraphAnswer performAction(@NotNull ActionContext context) {
public @NotNull LinearGraphAnswer performAction(@NotNull ActionContext context) {
CollapsedGraph.Modification modification = context.myCollapsedGraph.startModification();
modification.removeAdditionalEdges();
modification.resetNodesVisibility();
@@ -214,9 +213,8 @@ final class CollapsedActionManager {
};
private final static ActionCase COLLAPSE_ALL = new ActionCase() {
@Nullable
@Override
public LinearGraphAnswer performAction(@NotNull ActionContext context) {
public @NotNull LinearGraphAnswer performAction(@NotNull ActionContext context) {
CollapsedGraph.Modification modification = context.myCollapsedGraph.startModification();
modification.removeAdditionalEdges();
modification.resetNodesVisibility();
@@ -96,9 +96,8 @@ public class LinearBekController extends CascadeController {
@NotNull
private LinearGraphAnswer expandAll() {
return new LinearGraphAnswer(GraphChangesUtil.SOME_CHANGES) {
@Nullable
@Override
public Runnable getGraphUpdater() {
public @NotNull Runnable getGraphUpdater() {
return () -> {
myCompiledGraph.myDottedEdges.removeAll();
myCompiledGraph.myHiddenEdges.removeAll();
@@ -113,9 +112,8 @@ public class LinearBekController extends CascadeController {
new LinearBekGraphBuilder(workingGraph, myBekGraphLayout).collapseAll();
return new LinearGraphAnswer(
GraphChangesUtil.edgesReplaced(workingGraph.getRemovedEdges(), workingGraph.getAddedEdges(), getDelegateGraph())) {
@Nullable
@Override
public Runnable getGraphUpdater() {
public @NotNull Runnable getGraphUpdater() {
return () -> workingGraph.applyChanges();
}
};
@@ -84,8 +84,7 @@ public final class GitHistoryProvider implements VcsHistoryProviderEx,
}
@Override
@Nullable
public VcsAbstractHistorySession createSessionFor(final FilePath filePath) throws VcsException {
public @NotNull VcsAbstractHistorySession createSessionFor(final FilePath filePath) throws VcsException {
List<VcsFileRevision> revisions = GitFileHistory.collectHistory(myProject, filePath);
return createSession(filePath, revisions, revisions.isEmpty() ? null : getFirstItem(revisions).getRevisionNumber());
}