Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2016-07-06 17:18:15 -0400
committerGerrit Code Review @ Eclipse.org2016-07-22 21:40:39 -0400
commitc4d6ae5583b3a65cddb4275078240a3f40577d5f (patch)
treed4cebc71ccabdf8d6116d87fb4b14f566b5d957e
parent646e30a360627e4b625142308ed465ed1ff1d840 (diff)
downloadorg.eclipse.mylyn.tasks-c4d6ae5583b3a65cddb4275078240a3f40577d5f.tar.gz
org.eclipse.mylyn.tasks-c4d6ae5583b3a65cddb4275078240a3f40577d5f.tar.xz
org.eclipse.mylyn.tasks-c4d6ae5583b3a65cddb4275078240a3f40577d5f.zip
497412: TaskTask leaves key blank on construction
Change-Id: Ibf797d74f26846c4514d80ccc794bd55fd86862a Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=497412
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskTask.java1
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/RepositoryCompletionProcessorTest.java5
2 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskTask.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskTask.java
index a09146b62..193c22aef 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskTask.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskTask.java
@@ -21,7 +21,6 @@ public class TaskTask extends AbstractTask {
public TaskTask(String connectorKind, String repositoryUrl, String taskId) {
super(repositoryUrl, taskId, ""); //$NON-NLS-1$
this.connectorKind = connectorKind;
- this.taskKey = taskId;
}
@Override
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/RepositoryCompletionProcessorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/RepositoryCompletionProcessorTest.java
index 646edac84..9fb47eefc 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/RepositoryCompletionProcessorTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/ui/editor/RepositoryCompletionProcessorTest.java
@@ -11,8 +11,6 @@
package org.eclipse.mylyn.tasks.tests.ui.editor;
-import junit.framework.TestCase;
-
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.contentassist.ICompletionProposal;
import org.eclipse.mylyn.internal.tasks.core.TaskTask;
@@ -24,6 +22,8 @@ import org.eclipse.mylyn.tasks.tests.TaskTestUtil;
import org.eclipse.mylyn.tasks.tests.ui.MockTextViewer;
import org.eclipse.swt.graphics.Point;
+import junit.framework.TestCase;
+
/**
* @author Steffen Pingel
*/
@@ -164,6 +164,7 @@ public class RepositoryCompletionProcessorTest extends TestCase {
private TaskTask addTask(String taskId, String summary) {
TaskTask task = TaskTestUtil.createMockTask(taskId);
+ task.setTaskKey(taskId);
task.setSummary(summary);
TasksUiPlugin.getTaskList().addTask(task);
return task;

Back to the top