Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java
index 3f1affb578..096b7c95df 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/clone/CloneDestinationPage.java
@@ -32,6 +32,7 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.jgit.annotations.NonNull;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.Ref;
import org.eclipse.jgit.lib.Repository;
@@ -132,16 +133,17 @@ public class CloneDestinationPage extends WizardPage {
* @param head
* HEAD in source repository
*/
- public void setSelection(RepositorySelection repositorySelection, List<Ref> availableRefs, List<Ref> branches, Ref head){
+ public void setSelection(@NonNull RepositorySelection repositorySelection,
+ List<Ref> availableRefs, List<Ref> branches, Ref head) {
this.availableRefs.clear();
this.availableRefs.addAll(availableRefs);
checkPreviousPagesSelections(repositorySelection, branches, head);
- revalidate(repositorySelection,branches, head);
+ revalidate(repositorySelection, branches, head);
}
private void checkPreviousPagesSelections(
- RepositorySelection repositorySelection, List<Ref> branches,
- Ref head) {
+ @NonNull RepositorySelection repositorySelection,
+ List<Ref> branches, Ref head) {
if (!repositorySelection.equals(validatedRepoSelection)
|| !branches.equals(validatedSelectedBranches)
|| !head.equals(validatedHEAD))
@@ -436,7 +438,8 @@ public class CloneDestinationPage extends WizardPage {
return canCreateSubdir(parent.getParentFile());
}
- private void revalidate(RepositorySelection repoSelection, List<Ref> branches, Ref head) {
+ private void revalidate(@NonNull RepositorySelection repoSelection,
+ List<Ref> branches, Ref head) {
if (repoSelection.equals(validatedRepoSelection)
&& branches.equals(validatedSelectedBranches)
&& head.equals(validatedHEAD)) {

Back to the top