Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-22 23:22:49 -0400
committermkersten2007-06-22 23:22:49 -0400
commit9672fd2b3025710361027bc641db39101543461d (patch)
tree0ae41b4d065ee1efe8084ca3aaa66938592c21e6 /org.eclipse.mylyn.tasks.core
parent18c33e896b68521c9117927ef433c98b841699d2 (diff)
downloadorg.eclipse.mylyn.tasks-9672fd2b3025710361027bc641db39101543461d.tar.gz
org.eclipse.mylyn.tasks-9672fd2b3025710361027bc641db39101543461d.tar.xz
org.eclipse.mylyn.tasks-9672fd2b3025710361027bc641db39101543461d.zip
REOPENED - bug 149624: [api] AbstractRepositoryTask repositoryUrl and task id should not be derived from handleIdentifier
https://bugs.eclipse.org/bugs/show_bug.cgi?id=149624
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/RepositoryTaskHandleUtil.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/RepositoryTaskHandleUtil.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/RepositoryTaskHandleUtil.java
index 133233ec8..7c4132627 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/RepositoryTaskHandleUtil.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/RepositoryTaskHandleUtil.java
@@ -23,9 +23,9 @@ public class RepositoryTaskHandleUtil {
public static String getHandle(String repositoryUrl, String taskId) {
if (repositoryUrl == null) {
return MISSING_REPOSITORY + HANDLE_DELIM + taskId;
-// } else if (taskId.contains(HANDLE_DELIM)) {
-// throw new RuntimeException("invalid handle for task, can not contain: " + HANDLE_DELIM + ", was: "
-// + taskId);
+ } else if (taskId.contains(HANDLE_DELIM)) {
+ throw new RuntimeException("invalid handle for task, can not contain: " + HANDLE_DELIM + ", was: "
+ + taskId);
} else {
return repositoryUrl + HANDLE_DELIM + taskId;
}
@@ -40,7 +40,6 @@ public class RepositoryTaskHandleUtil {
return url;
}
- // @Deprecated
public static String getTaskId(String taskHandle) {
int index = taskHandle.lastIndexOf(HANDLE_DELIM);
if (index != -1) {

Back to the top