diff options
author | relves | 2007-01-13 01:59:17 +0000 |
---|---|---|
committer | relves | 2007-01-13 01:59:17 +0000 |
commit | 78b8e4d48a641453f804326e5b5b6fa4b7662365 (patch) | |
tree | 9b59573b94b71a288038813f0b7f6b755c82e20d /org.eclipse.mylyn.bugzilla.core | |
parent | de7711ea47b22a82bd4b7625c2411f84f00886fc (diff) | |
download | org.eclipse.mylyn.tasks-78b8e4d48a641453f804326e5b5b6fa4b7662365.tar.gz org.eclipse.mylyn.tasks-78b8e4d48a641453f804326e5b5b6fa4b7662365.tar.xz org.eclipse.mylyn.tasks-78b8e4d48a641453f804326e5b5b6fa4b7662365.zip |
NEW - bug 165498: [api] Create unified abstract support for task submission to repository
https://bugs.eclipse.org/bugs/show_bug.cgi?id=165498
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java index 42e834401..bd855fcb9 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java @@ -329,7 +329,8 @@ public class BugzillaClient { } catch (ParseException e) { authenticated = false; throw new CoreException(new MylarStatus(Status.ERROR, BugzillaCorePlugin.PLUGIN_ID, - IMylarStatusConstants.INTERNAL_ERROR, "Unable to parse response from "+repositoryUrl.toString()+".")); + IMylarStatusConstants.INTERNAL_ERROR, "Unable to parse response from " + repositoryUrl.toString() + + ".")); } finally { if (method != null) { method.releaseConnection(); @@ -418,7 +419,8 @@ public class BugzillaClient { } catch (ParseException e) { authenticated = false; throw new CoreException(new MylarStatus(Status.ERROR, BugzillaCorePlugin.PLUGIN_ID, - IMylarStatusConstants.INTERNAL_ERROR, "Unable to parse response from "+repositoryUrl.toString()+".")); + IMylarStatusConstants.INTERNAL_ERROR, "Unable to parse response from " + repositoryUrl.toString() + + ".")); } catch (IOException e) { throw new CoreException(new MylarStatus(Status.ERROR, BugzillaCorePlugin.PLUGIN_ID, @@ -778,7 +780,8 @@ public class BugzillaClient { } catch (ParseException e) { authenticated = false; throw new CoreException(new MylarStatus(Status.ERROR, BugzillaCorePlugin.PLUGIN_ID, - IMylarStatusConstants.INTERNAL_ERROR, "Unable to parse response from "+repositoryUrl.toString()+".")); + IMylarStatusConstants.INTERNAL_ERROR, "Unable to parse response from " + repositoryUrl.toString() + + ".")); } finally { if (inputStream != null) { inputStream.close(); @@ -808,9 +811,6 @@ public class BugzillaClient { } if (taskData.getDescription().length() != 0) { - // add the new comment to the bug post if there - // is some text in - // it fields.put(KEY_COMMENT, new NameValuePair(KEY_COMMENT, taskData.getDescription())); } @@ -967,12 +967,14 @@ public class BugzillaClient { } } - throw new CoreException(new MylarStatus(IStatus.INFO, BugzillaCorePlugin.PLUGIN_ID, IMylarStatusConstants.REPOSITORY_ERROR_HTML, repositoryUrl.toString(), body)); + throw new CoreException(new MylarStatus(IStatus.INFO, BugzillaCorePlugin.PLUGIN_ID, + IMylarStatusConstants.REPOSITORY_ERROR_HTML, repositoryUrl.toString(), body)); } catch (ParseException e) { authenticated = false; throw new CoreException(new MylarStatus(Status.ERROR, BugzillaCorePlugin.PLUGIN_ID, - IMylarStatusConstants.INTERNAL_ERROR, "Unable to parse response from "+repositoryUrl.toString()+".")); + IMylarStatusConstants.INTERNAL_ERROR, "Unable to parse response from " + repositoryUrl.toString() + + ".")); } } |