From 086d92558e9b144ae156c79586e814208cbbbe89 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Thu, 24 Nov 2016 17:41:40 +0300 Subject: [PATCH] vcs: cleanup - @NotNull --- .../openapi/vcs/changes/ui/CommitHelper.java | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitHelper.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitHelper.java index 46e465113007..658eb8160654 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitHelper.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/CommitHelper.java @@ -58,33 +58,33 @@ public class CommitHelper { public static final Key DOCUMENT_BEING_COMMITTED_KEY = new Key<>("DOCUMENT_BEING_COMMITTED"); private final static Logger LOG = Logger.getInstance("#com.intellij.openapi.vcs.changes.ui.CommitHelper"); - private final Project myProject; + @NotNull private final Project myProject; - private final ChangeList myChangeList; - private final List myIncludedChanges; + @NotNull private final ChangeList myChangeList; + @NotNull private final List myIncludedChanges; - private final String myActionName; - private final String myCommitMessage; + @NotNull private final String myActionName; + @NotNull private final String myCommitMessage; - private final List myHandlers; + @NotNull private final List myHandlers; private final boolean myAllOfDefaultChangeListChangesIncluded; private final boolean myForceSyncCommit; - private final NullableFunction myAdditionalData; + @NotNull private final NullableFunction myAdditionalData; @Nullable private final CommitResultHandler myCustomResultHandler; - private final List myCommittingDocuments = new ArrayList<>(); - private final VcsConfiguration myConfiguration; - private final VcsDirtyScopeManager myDirtyScopeManager; - private final HashSet myFeedback; + @NotNull private final List myCommittingDocuments = new ArrayList<>(); + @NotNull private final VcsConfiguration myConfiguration; + @NotNull private final VcsDirtyScopeManager myDirtyScopeManager; + @NotNull private final HashSet myFeedback = new HashSet<>(); - public CommitHelper(final Project project, - final ChangeList changeList, - final List includedChanges, - final String actionName, - final String commitMessage, - final List handlers, - final boolean allOfDefaultChangeListChangesIncluded, - final boolean synchronously, - final NullableFunction additionalDataHolder, + public CommitHelper(@NotNull Project project, + @NotNull ChangeList changeList, + @NotNull List includedChanges, + @NotNull String actionName, + @NotNull String commitMessage, + @NotNull List handlers, + boolean allOfDefaultChangeListChangesIncluded, + boolean synchronously, + @NotNull NullableFunction additionalDataHolder, @Nullable CommitResultHandler customResultHandler) { myProject = project; myChangeList = changeList; @@ -98,7 +98,6 @@ public class CommitHelper { myCustomResultHandler = customResultHandler; myConfiguration = VcsConfiguration.getInstance(myProject); myDirtyScopeManager = VcsDirtyScopeManager.getInstance(myProject); - myFeedback = new HashSet<>(); } public boolean doCommit() {