Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Muskalla2013-10-01 11:26:11 -0400
committerGerrit Code Review @ Eclipse.org2013-10-02 12:16:32 -0400
commit8fba9da86ab70552ec572f32f8c8ba14ee375982 (patch)
treed62de8ff4106311874376cb03ade185f28c2cac4 /org.eclipse.mylyn.tasks.ui
parent4dff02370d10c265b597e6cd4cf3931e084852d6 (diff)
downloadorg.eclipse.mylyn.tasks-8fba9da86ab70552ec572f32f8c8ba14ee375982.tar.gz
org.eclipse.mylyn.tasks-8fba9da86ab70552ec572f32f8c8ba14ee375982.tar.xz
org.eclipse.mylyn.tasks-8fba9da86ab70552ec572f32f8c8ba14ee375982.zip
Use @NonNull for query pages
Change-Id: I5fbdfb836112334c2af7a9e47dcab4240a648d21 Signed-off-by: Benjamin Muskalla <benjamin.muskalla@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2.java5
2 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java
index 09d75c7d3..ce27894b1 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage.java
@@ -15,6 +15,7 @@ import java.beans.Beans;
import java.util.Set;
import org.eclipse.core.runtime.Assert;
+import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.mylyn.internal.tasks.core.AbstractTaskCategory;
@@ -120,7 +121,7 @@ public abstract class AbstractRepositoryQueryPage extends WizardPage implements
return query;
}
- public abstract void applyTo(IRepositoryQuery query);
+ public abstract void applyTo(@NonNull IRepositoryQuery query);
public void saveState() {
// empty
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2.java
index 294b7b6f7..7efb6a3e2 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/wizards/AbstractRepositoryQueryPage2.java
@@ -17,6 +17,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.SubMonitor;
+import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.dialogs.IDialogSettings;
@@ -414,7 +415,7 @@ public abstract class AbstractRepositoryQueryPage2 extends AbstractRepositoryQue
progressContainer.setCancelButton(cancelButton);
}
- protected abstract void createPageContent(SectionComposite parent);
+ protected abstract void createPageContent(@NonNull SectionComposite parent);
protected void doClearControls() {
}
@@ -444,6 +445,6 @@ public abstract class AbstractRepositoryQueryPage2 extends AbstractRepositoryQue
return false;
}
- protected abstract boolean restoreState(IRepositoryQuery query);
+ protected abstract boolean restoreState(@NonNull IRepositoryQuery query);
}

Back to the top