{"action":"created","comment":{"url":"https://api.github.com/repos/camelot-framework/camelot/pulls/comments/46061957","id":46061957,"diff_hunk":"@@ -0,0 +1,40 @@\n+package ru.yandex.qatools.camelot.qpid;\n+\n+import ru.yandex.qatools.camelot.common.PluginUriBuilder;\n+import ru.yandex.qatools.camelot.common.builders.BasicPluginUriBuilder;\n+import ru.yandex.qatools.camelot.config.Plugin;\n+\n+import static java.lang.String.format;\n+import static org.apache.commons.lang3.StringUtils.isEmpty;\n+\n+/**\n+ * @author Ilya Sadykov\n+ */\n+public class QpidPluginUriBuilder extends BasicPluginUriBuilder implements PluginUriBuilder {\n+    public static final String PLUGIN_IN_PREFIX = \"amqp:queue:\";\n+    public static final String CLIENT_NOTIFY_URI = \"amqp:topic:frontend.notify;{create:always}\";\n+    public static final String TMP_INPUT_BUFFER_URI = \"amqp:queue:tmp.input;{create:always}\";\n+\n+    @Override\n+    public String pluginUri(Plugin plugin, String suffix, String brokerConfig) {\n+        return format(\"%s%s;{create:always}%s\",\n+                plugin.getBaseInputUri(),\n+                plugin.getId() + (isEmpty(suffix) ? \"\" : \".\" + suffix),\n+                (isEmpty(brokerConfig) ? \"\" : brokerConfig));","path":"camelot-ext/camelot-qpid/src/main/java/ru/yandex/qatools/camelot/qpid/QpidPluginUriBuilder.java","position":23,"original_position":23,"commit_id":"856b9726b5e78cba6b0ace87c39e5e8c9e191691","original_commit_id":"856b9726b5e78cba6b0ace87c39e5e8c9e191691","user":{"login":"qatools-ci","id":4466920,"avatar_url":"https://avatars.githubusercontent.com/u/4466920?v=3","gravatar_id":"","url":"https://api.github.com/users/qatools-ci","html_url":"https://github.com/qatools-ci","followers_url":"https://api.github.com/users/qatools-ci/followers","following_url":"https://api.github.com/users/qatools-ci/following{/other_user}","gists_url":"https://api.github.com/users/qatools-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/qatools-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qatools-ci/subscriptions","organizations_url":"https://api.github.com/users/qatools-ci/orgs","repos_url":"https://api.github.com/users/qatools-ci/repos","events_url":"https://api.github.com/users/qatools-ci/events{/privacy}","received_events_url":"https://api.github.com/users/qatools-ci/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) Remove those useless parentheses. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AUselessParenthesesCheck)\n","created_at":"2015-11-27T17:04:24Z","updated_at":"2015-11-27T17:04:24Z","html_url":"https://github.com/camelot-framework/camelot/pull/132#discussion_r46061957","pull_request_url":"https://api.github.com/repos/camelot-framework/camelot/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/camelot-framework/camelot/pulls/comments/46061957"},"html":{"href":"https://github.com/camelot-framework/camelot/pull/132#discussion_r46061957"},"pull_request":{"href":"https://api.github.com/repos/camelot-framework/camelot/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/camelot-framework/camelot/pulls/132","id":52012713,"html_url":"https://github.com/camelot-framework/camelot/pull/132","diff_url":"https://github.com/camelot-framework/camelot/pull/132.diff","patch_url":"https://github.com/camelot-framework/camelot/pull/132.patch","issue_url":"https://api.github.com/repos/camelot-framework/camelot/issues/132","number":132,"state":"open","locked":false,"title":"Qpid broker extension implementation","user":{"login":"smecsia","id":214657,"avatar_url":"https://avatars.githubusercontent.com/u/214657?v=3","gravatar_id":"","url":"https://api.github.com/users/smecsia","html_url":"https://github.com/smecsia","followers_url":"https://api.github.com/users/smecsia/followers","following_url":"https://api.github.com/users/smecsia/following{/other_user}","gists_url":"https://api.github.com/users/smecsia/gists{/gist_id}","starred_url":"https://api.github.com/users/smecsia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smecsia/subscriptions","organizations_url":"https://api.github.com/users/smecsia/orgs","repos_url":"https://api.github.com/users/smecsia/repos","events_url":"https://api.github.com/users/smecsia/events{/privacy}","received_events_url":"https://api.github.com/users/smecsia/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-27T16:55:53Z","updated_at":"2015-11-27T17:04:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8baa5e9b79d8e0eceacd237a4d7ba8b10427c4b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/camelot-framework/camelot/pulls/132/commits","review_comments_url":"https://api.github.com/repos/camelot-framework/camelot/pulls/132/comments","review_comment_url":"https://api.github.com/repos/camelot-framework/camelot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/camelot-framework/camelot/issues/132/comments","statuses_url":"https://api.github.com/repos/camelot-framework/camelot/statuses/856b9726b5e78cba6b0ace87c39e5e8c9e191691","head":{"label":"smecsia:qpid","ref":"qpid","sha":"856b9726b5e78cba6b0ace87c39e5e8c9e191691","user":{"login":"smecsia","id":214657,"avatar_url":"https://avatars.githubusercontent.com/u/214657?v=3","gravatar_id":"","url":"https://api.github.com/users/smecsia","html_url":"https://github.com/smecsia","followers_url":"https://api.github.com/users/smecsia/followers","following_url":"https://api.github.com/users/smecsia/following{/other_user}","gists_url":"https://api.github.com/users/smecsia/gists{/gist_id}","starred_url":"https://api.github.com/users/smecsia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smecsia/subscriptions","organizations_url":"https://api.github.com/users/smecsia/orgs","repos_url":"https://api.github.com/users/smecsia/repos","events_url":"https://api.github.com/users/smecsia/events{/privacy}","received_events_url":"https://api.github.com/users/smecsia/received_events","type":"User","site_admin":false},"repo":{"id":22915597,"name":"camelot","full_name":"smecsia/camelot","owner":{"login":"smecsia","id":214657,"avatar_url":"https://avatars.githubusercontent.com/u/214657?v=3","gravatar_id":"","url":"https://api.github.com/users/smecsia","html_url":"https://github.com/smecsia","followers_url":"https://api.github.com/users/smecsia/followers","following_url":"https://api.github.com/users/smecsia/following{/other_user}","gists_url":"https://api.github.com/users/smecsia/gists{/gist_id}","starred_url":"https://api.github.com/users/smecsia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smecsia/subscriptions","organizations_url":"https://api.github.com/users/smecsia/orgs","repos_url":"https://api.github.com/users/smecsia/repos","events_url":"https://api.github.com/users/smecsia/events{/privacy}","received_events_url":"https://api.github.com/users/smecsia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smecsia/camelot","description":"Simplified scalable aggregation and processing framework built upon Apache Camel.","fork":true,"url":"https://api.github.com/repos/smecsia/camelot","forks_url":"https://api.github.com/repos/smecsia/camelot/forks","keys_url":"https://api.github.com/repos/smecsia/camelot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smecsia/camelot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smecsia/camelot/teams","hooks_url":"https://api.github.com/repos/smecsia/camelot/hooks","issue_events_url":"https://api.github.com/repos/smecsia/camelot/issues/events{/number}","events_url":"https://api.github.com/repos/smecsia/camelot/events","assignees_url":"https://api.github.com/repos/smecsia/camelot/assignees{/user}","branches_url":"https://api.github.com/repos/smecsia/camelot/branches{/branch}","tags_url":"https://api.github.com/repos/smecsia/camelot/tags","blobs_url":"https://api.github.com/repos/smecsia/camelot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smecsia/camelot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smecsia/camelot/git/refs{/sha}","trees_url":"https://api.github.com/repos/smecsia/camelot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smecsia/camelot/statuses/{sha}","languages_url":"https://api.github.com/repos/smecsia/camelot/languages","stargazers_url":"https://api.github.com/repos/smecsia/camelot/stargazers","contributors_url":"https://api.github.com/repos/smecsia/camelot/contributors","subscribers_url":"https://api.github.com/repos/smecsia/camelot/subscribers","subscription_url":"https://api.github.com/repos/smecsia/camelot/subscription","commits_url":"https://api.github.com/repos/smecsia/camelot/commits{/sha}","git_commits_url":"https://api.github.com/repos/smecsia/camelot/git/commits{/sha}","comments_url":"https://api.github.com/repos/smecsia/camelot/comments{/number}","issue_comment_url":"https://api.github.com/repos/smecsia/camelot/issues/comments{/number}","contents_url":"https://api.github.com/repos/smecsia/camelot/contents/{+path}","compare_url":"https://api.github.com/repos/smecsia/camelot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smecsia/camelot/merges","archive_url":"https://api.github.com/repos/smecsia/camelot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smecsia/camelot/downloads","issues_url":"https://api.github.com/repos/smecsia/camelot/issues{/number}","pulls_url":"https://api.github.com/repos/smecsia/camelot/pulls{/number}","milestones_url":"https://api.github.com/repos/smecsia/camelot/milestones{/number}","notifications_url":"https://api.github.com/repos/smecsia/camelot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smecsia/camelot/labels{/name}","releases_url":"https://api.github.com/repos/smecsia/camelot/releases{/id}","created_at":"2014-08-13T12:56:57Z","updated_at":"2015-04-29T13:19:37Z","pushed_at":"2015-11-27T16:59:37Z","git_url":"git://github.com/smecsia/camelot.git","ssh_url":"git@github.com:smecsia/camelot.git","clone_url":"https://github.com/smecsia/camelot.git","svn_url":"https://github.com/smecsia/camelot","homepage":"http://camelot.qatools.ru","size":1420,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"camelot-framework:master","ref":"master","sha":"d8a4e6cfd2db430104c1c72ab2467987a17a99a7","user":{"login":"camelot-framework","id":6671821,"avatar_url":"https://avatars.githubusercontent.com/u/6671821?v=3","gravatar_id":"","url":"https://api.github.com/users/camelot-framework","html_url":"https://github.com/camelot-framework","followers_url":"https://api.github.com/users/camelot-framework/followers","following_url":"https://api.github.com/users/camelot-framework/following{/other_user}","gists_url":"https://api.github.com/users/camelot-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/camelot-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camelot-framework/subscriptions","organizations_url":"https://api.github.com/users/camelot-framework/orgs","repos_url":"https://api.github.com/users/camelot-framework/repos","events_url":"https://api.github.com/users/camelot-framework/events{/privacy}","received_events_url":"https://api.github.com/users/camelot-framework/received_events","type":"Organization","site_admin":false},"repo":{"id":22441031,"name":"camelot","full_name":"camelot-framework/camelot","owner":{"login":"camelot-framework","id":6671821,"avatar_url":"https://avatars.githubusercontent.com/u/6671821?v=3","gravatar_id":"","url":"https://api.github.com/users/camelot-framework","html_url":"https://github.com/camelot-framework","followers_url":"https://api.github.com/users/camelot-framework/followers","following_url":"https://api.github.com/users/camelot-framework/following{/other_user}","gists_url":"https://api.github.com/users/camelot-framework/gists{/gist_id}","starred_url":"https://api.github.com/users/camelot-framework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camelot-framework/subscriptions","organizations_url":"https://api.github.com/users/camelot-framework/orgs","repos_url":"https://api.github.com/users/camelot-framework/repos","events_url":"https://api.github.com/users/camelot-framework/events{/privacy}","received_events_url":"https://api.github.com/users/camelot-framework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/camelot-framework/camelot","description":"Simplified scalable aggregation and processing framework built upon Apache Camel.","fork":false,"url":"https://api.github.com/repos/camelot-framework/camelot","forks_url":"https://api.github.com/repos/camelot-framework/camelot/forks","keys_url":"https://api.github.com/repos/camelot-framework/camelot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/camelot-framework/camelot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/camelot-framework/camelot/teams","hooks_url":"https://api.github.com/repos/camelot-framework/camelot/hooks","issue_events_url":"https://api.github.com/repos/camelot-framework/camelot/issues/events{/number}","events_url":"https://api.github.com/repos/camelot-framework/camelot/events","assignees_url":"https://api.github.com/repos/camelot-framework/camelot/assignees{/user}","branches_url":"https://api.github.com/repos/camelot-framework/camelot/branches{/branch}","tags_url":"https://api.github.com/repos/camelot-framework/camelot/tags","blobs_url":"https://api.github.com/repos/camelot-framework/camelot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/camelot-framework/camelot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/camelot-framework/camelot/git/refs{/sha}","trees_url":"https://api.github.com/repos/camelot-framework/camelot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/camelot-framework/camelot/statuses/{sha}","languages_url":"https://api.github.com/repos/camelot-framework/camelot/languages","stargazers_url":"https://api.github.com/repos/camelot-framework/camelot/stargazers","contributors_url":"https://api.github.com/repos/camelot-framework/camelot/contributors","subscribers_url":"https://api.github.com/repos/camelot-framework/camelot/subscribers","subscription_url":"https://api.github.com/repos/camelot-framework/camelot/subscription","commits_url":"https://api.github.com/repos/camelot-framework/camelot/commits{/sha}","git_commits_url":"https://api.github.com/repos/camelot-framework/camelot/git/commits{/sha}","comments_url":"https://api.github.com/repos/camelot-framework/camelot/comments{/number}","issue_comment_url":"https://api.github.com/repos/camelot-framework/camelot/issues/comments{/number}","contents_url":"https://api.github.com/repos/camelot-framework/camelot/contents/{+path}","compare_url":"https://api.github.com/repos/camelot-framework/camelot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/camelot-framework/camelot/merges","archive_url":"https://api.github.com/repos/camelot-framework/camelot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/camelot-framework/camelot/downloads","issues_url":"https://api.github.com/repos/camelot-framework/camelot/issues{/number}","pulls_url":"https://api.github.com/repos/camelot-framework/camelot/pulls{/number}","milestones_url":"https://api.github.com/repos/camelot-framework/camelot/milestones{/number}","notifications_url":"https://api.github.com/repos/camelot-framework/camelot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/camelot-framework/camelot/labels{/name}","releases_url":"https://api.github.com/repos/camelot-framework/camelot/releases{/id}","created_at":"2014-07-30T19:06:12Z","updated_at":"2015-11-10T19:28:04Z","pushed_at":"2015-11-27T16:55:54Z","git_url":"git://github.com/camelot-framework/camelot.git","ssh_url":"git@github.com:camelot-framework/camelot.git","clone_url":"https://github.com/camelot-framework/camelot.git","svn_url":"https://github.com/camelot-framework/camelot","homepage":"","size":1433,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/camelot-framework/camelot/pulls/132"},"html":{"href":"https://github.com/camelot-framework/camelot/pull/132"},"issue":{"href":"https://api.github.com/repos/camelot-framework/camelot/issues/132"},"comments":{"href":"https://api.github.com/repos/camelot-framework/camelot/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/camelot-framework/camelot/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/camelot-framework/camelot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/camelot-framework/camelot/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/camelot-framework/camelot/statuses/856b9726b5e78cba6b0ace87c39e5e8c9e191691"}}}}