mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] replace incorrect Nullable annotations with NotNull
GitOrigin-RevId: 897ccecadbaeb69211bcd0fab5e670f20f5c9ced
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d4978ffa27
commit
53ce54df5c
+2
-4
@@ -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();
|
||||
|
||||
+2
-4
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user