Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2006-12-22 15:31:35 -0500
committermkersten2006-12-22 15:31:35 -0500
commit04ba1cb1f2b3a48f0098a1b0a9ba586d8001ac5f (patch)
tree57ba76ce1b0e7e25699459192e59930ecfae583f
parent5825ed8ac443c9ec1809d88b926afcfcc9052c2b (diff)
downloadorg.eclipse.mylyn.tasks-04ba1cb1f2b3a48f0098a1b0a9ba586d8001ac5f.tar.gz
org.eclipse.mylyn.tasks-04ba1cb1f2b3a48f0098a1b0a9ba586d8001ac5f.tar.xz
org.eclipse.mylyn.tasks-04ba1cb1f2b3a48f0098a1b0a9ba586d8001ac5f.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.java6
1 files changed, 3 insertions, 3 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 1eba6f106..2818e7673 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
@@ -91,7 +91,7 @@ public class TaskList {
}
public void refactorRepositoryUrl(Object oldUrl, String newUrl) {
- for (ITask task : new ArrayList<ITask>(tasks.values())) {
+ for (ITask task : tasks.values()) {
if (task instanceof AbstractRepositoryTask) {
AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask) task;
if (oldUrl.equals(AbstractRepositoryTask.getRepositoryUrl(repositoryTask.getHandleIdentifier()))) {
@@ -415,8 +415,8 @@ public class TaskList {
HashSet<AbstractQueryHit> result = new HashSet<AbstractQueryHit>();
for (String handle : handles) {
AbstractQueryHit hit = queryHits.get(handle);
- if(hit != null) {
- result.add(queryHits.get(handle));
+ if (hit != null) {
+ result.add(hit);
}
}
return result;

Back to the top