Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-12-20 19:14:14 -0500
committermkersten2006-12-20 19:14:14 -0500
commit34e851cba11d8e8043d92aa06e8de8b6ec60bdff (patch)
tree481d7f30216abc13f07241d0b3c30ca4e09f1fa7
parentdf7677fbd46ab96f8fa9da984e63d2d751fa9b6c (diff)
downloadorg.eclipse.mylyn.tasks-34e851cba11d8e8043d92aa06e8de8b6ec60bdff.tar.gz
org.eclipse.mylyn.tasks-34e851cba11d8e8043d92aa06e8de8b6ec60bdff.tar.xz
org.eclipse.mylyn.tasks-34e851cba11d8e8043d92aa06e8de8b6ec60bdff.zip
RESOLVED - bug 167402: Error: "An internal error occurred during: "Task List Saver"." in org.eclipse.core.jobs
https://bugs.eclipse.org/bugs/show_bug.cgi?id=167402
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java3
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskListWriter.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
index 9cb0165f3..efe9c89ed 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskList.java
@@ -306,6 +306,7 @@ public class TaskList {
}
public Set<AbstractTaskContainer> getCategories() {
+ // TODO: remove wrapping once API can change
return Collections.unmodifiableSet(new HashSet<AbstractTaskContainer>(categories.values()));
}
@@ -320,6 +321,7 @@ public class TaskList {
}
public Set<AbstractRepositoryQuery> getQueries() {
+ // TODO: remove wrapping once API can change
return Collections.unmodifiableSet(new HashSet<AbstractRepositoryQuery>(queries.values()));
}
@@ -428,6 +430,7 @@ public class TaskList {
/** for testing */
public Set<AbstractQueryHit> getQueryHits() {
+ // TODO: remove wrapping once API can change
return new HashSet<AbstractQueryHit>(queryHits.values());
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskListWriter.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskListWriter.java
index 33e12a414..b97fc16b8 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskListWriter.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskListWriter.java
@@ -140,7 +140,7 @@ public class TaskListWriter {
// Collection<ITask> allTasks =
// Collections.synchronizedCollection(taskList.getAllTasks());
// synchronized (allTasks) {
- for (ITask task : new ArrayList<ITask>(taskList.getAllTasks())) {
+ for (ITask task : taskList.getAllTasks()) {
createTaskElement(doc, root, task);
}

Back to the top