Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2014-09-22 13:31:27 +0000
committerSam Davis2014-10-14 20:14:11 +0000
commit71483ae4917a2d0d4f768fcd70a5d34fb2f22a93 (patch)
tree9ed069f529862f4e5847048271ebfeeb1b0f4a23 /org.eclipse.mylyn.tasks.ui
parent1025e8adfa3b1f61dc1c07bc3ef0ca22140f046c (diff)
downloadorg.eclipse.mylyn.tasks-71483ae4917a2d0d4f768fcd70a5d34fb2f22a93.tar.gz
org.eclipse.mylyn.tasks-71483ae4917a2d0d4f768fcd70a5d34fb2f22a93.tar.xz
org.eclipse.mylyn.tasks-71483ae4917a2d0d4f768fcd70a5d34fb2f22a93.zip
add @NonNull annotations to AttribueEditorFactory
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java
index 040ba78dc..404023ec0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AttributeEditorFactory.java
@@ -12,6 +12,8 @@
package org.eclipse.mylyn.tasks.ui.editors;
import org.eclipse.core.runtime.Assert;
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.mylyn.internal.tasks.ui.editors.BooleanAttributeEditor;
import org.eclipse.mylyn.internal.tasks.ui.editors.DateAttributeEditor;
import org.eclipse.mylyn.internal.tasks.ui.editors.DoubleAttributeEditor;
@@ -49,14 +51,15 @@ public class AttributeEditorFactory {
private AttributeEditorToolkit editorToolkit;
- public AttributeEditorFactory(TaskDataModel model, TaskRepository taskRepository) {
+ public AttributeEditorFactory(@NonNull TaskDataModel model, @NonNull TaskRepository taskRepository) {
this(model, taskRepository, null);
}
/**
* @since 3.1
*/
- public AttributeEditorFactory(TaskDataModel model, TaskRepository taskRepository, IServiceLocator serviceLocator) {
+ public AttributeEditorFactory(@NonNull TaskDataModel model, @NonNull TaskRepository taskRepository,
+ @Nullable IServiceLocator serviceLocator) {
Assert.isNotNull(model);
Assert.isNotNull(taskRepository);
this.model = model;
@@ -67,6 +70,7 @@ public class AttributeEditorFactory {
/**
* @since 3.1
*/
+ @Nullable
public AttributeEditorToolkit getEditorToolkit() {
return editorToolkit;
}
@@ -74,12 +78,14 @@ public class AttributeEditorFactory {
/**
* @since 3.1
*/
- public void setEditorToolkit(AttributeEditorToolkit editorToolkit) {
+ public void setEditorToolkit(@Nullable AttributeEditorToolkit editorToolkit) {
this.editorToolkit = editorToolkit;
}
- public AbstractAttributeEditor createEditor(String type, TaskAttribute taskAttribute) {
+ @NonNull
+ public AbstractAttributeEditor createEditor(@NonNull String type, @NonNull TaskAttribute taskAttribute) {
Assert.isNotNull(type);
+ Assert.isNotNull(taskAttribute);
if (TaskAttribute.TYPE_BOOLEAN.equals(type)) {
return new BooleanAttributeEditor(model, taskAttribute);

Back to the top