{"action":"created","comment":{"url":"https://api.github.com/repos/rruxandra/demo/pulls/comments/35209256","id":35209256,"diff_hunk":"@@ -0,0 +1,28 @@\n+package demo.web;\n+\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RestController;\n+import org.springframework.web.bind.annotation.ResponseBody;\n+import org.springframework.web.bind.annotation.RequestHeader;\n+\n+/**\n+ * Created by ruxandra on 22.07.2015.\n+ */\n+\n+\n+@RestController\n+public class TestController {\n+\n+    private String test;\n+\n+    @RequestMapping(value = \"test\")\n+    public void test() throws Throwable {\n+\n+        System.out.println(\"test\");\n+        System.out.println(\"test\");\n+        System.out.println(\"test\");\n+        System.out.println(\"test\");\n+\n+        throw new Throwable();","path":"src/main/java/demo/web/TestController.java","position":26,"original_position":26,"commit_id":"ff00c5c77f822848e67669335c9edff50d658002","original_commit_id":"ff00c5c77f822848e67669335c9edff50d658002","user":{"login":"rruxandra","id":1734920,"avatar_url":"https://avatars.githubusercontent.com/u/1734920?v=3","gravatar_id":"","url":"https://api.github.com/users/rruxandra","html_url":"https://github.com/rruxandra","followers_url":"https://api.github.com/users/rruxandra/followers","following_url":"https://api.github.com/users/rruxandra/following{/other_user}","gists_url":"https://api.github.com/users/rruxandra/gists{/gist_id}","starred_url":"https://api.github.com/users/rruxandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rruxandra/subscriptions","organizations_url":"https://api.github.com/users/rruxandra/orgs","repos_url":"https://api.github.com/users/rruxandra/repos","events_url":"https://api.github.com/users/rruxandra/events{/privacy}","received_events_url":"https://api.github.com/users/rruxandra/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) Define and throw a dedicated exception instead of using a generic one. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](http://nemo.sonarqube.org/coding_rules#rule_key=squid%3AS00112)\n","created_at":"2015-07-22T12:59:57Z","updated_at":"2015-07-22T12:59:57Z","html_url":"https://github.com/rruxandra/demo/pull/1#discussion_r35209256","pull_request_url":"https://api.github.com/repos/rruxandra/demo/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rruxandra/demo/pulls/comments/35209256"},"html":{"href":"https://github.com/rruxandra/demo/pull/1#discussion_r35209256"},"pull_request":{"href":"https://api.github.com/repos/rruxandra/demo/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rruxandra/demo/pulls/1","id":40535061,"html_url":"https://github.com/rruxandra/demo/pull/1","diff_url":"https://github.com/rruxandra/demo/pull/1.diff","patch_url":"https://github.com/rruxandra/demo/pull/1.patch","issue_url":"https://api.github.com/repos/rruxandra/demo/issues/1","number":1,"state":"closed","locked":false,"title":"Test change","user":{"login":"rruxandra","id":1734920,"avatar_url":"https://avatars.githubusercontent.com/u/1734920?v=3","gravatar_id":"","url":"https://api.github.com/users/rruxandra","html_url":"https://github.com/rruxandra","followers_url":"https://api.github.com/users/rruxandra/followers","following_url":"https://api.github.com/users/rruxandra/following{/other_user}","gists_url":"https://api.github.com/users/rruxandra/gists{/gist_id}","starred_url":"https://api.github.com/users/rruxandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rruxandra/subscriptions","organizations_url":"https://api.github.com/users/rruxandra/orgs","repos_url":"https://api.github.com/users/rruxandra/repos","events_url":"https://api.github.com/users/rruxandra/events{/privacy}","received_events_url":"https://api.github.com/users/rruxandra/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-22T06:50:07Z","updated_at":"2015-07-22T12:59:57Z","closed_at":"2015-07-22T12:59:15Z","merged_at":"2015-07-22T12:59:15Z","merge_commit_sha":"980fa8dfa44b193287de77b7a42a9ddc15a25412","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rruxandra/demo/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rruxandra/demo/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rruxandra/demo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rruxandra/demo/issues/1/comments","statuses_url":"https://api.github.com/repos/rruxandra/demo/statuses/ff00c5c77f822848e67669335c9edff50d658002","head":{"label":"rruxandra:test-feature","ref":"test-feature","sha":"ff00c5c77f822848e67669335c9edff50d658002","user":{"login":"rruxandra","id":1734920,"avatar_url":"https://avatars.githubusercontent.com/u/1734920?v=3","gravatar_id":"","url":"https://api.github.com/users/rruxandra","html_url":"https://github.com/rruxandra","followers_url":"https://api.github.com/users/rruxandra/followers","following_url":"https://api.github.com/users/rruxandra/following{/other_user}","gists_url":"https://api.github.com/users/rruxandra/gists{/gist_id}","starred_url":"https://api.github.com/users/rruxandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rruxandra/subscriptions","organizations_url":"https://api.github.com/users/rruxandra/orgs","repos_url":"https://api.github.com/users/rruxandra/repos","events_url":"https://api.github.com/users/rruxandra/events{/privacy}","received_events_url":"https://api.github.com/users/rruxandra/received_events","type":"User","site_admin":false},"repo":{"id":39451471,"name":"demo","full_name":"rruxandra/demo","owner":{"login":"rruxandra","id":1734920,"avatar_url":"https://avatars.githubusercontent.com/u/1734920?v=3","gravatar_id":"","url":"https://api.github.com/users/rruxandra","html_url":"https://github.com/rruxandra","followers_url":"https://api.github.com/users/rruxandra/followers","following_url":"https://api.github.com/users/rruxandra/following{/other_user}","gists_url":"https://api.github.com/users/rruxandra/gists{/gist_id}","starred_url":"https://api.github.com/users/rruxandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rruxandra/subscriptions","organizations_url":"https://api.github.com/users/rruxandra/orgs","repos_url":"https://api.github.com/users/rruxandra/repos","events_url":"https://api.github.com/users/rruxandra/events{/privacy}","received_events_url":"https://api.github.com/users/rruxandra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rruxandra/demo","description":"","fork":false,"url":"https://api.github.com/repos/rruxandra/demo","forks_url":"https://api.github.com/repos/rruxandra/demo/forks","keys_url":"https://api.github.com/repos/rruxandra/demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rruxandra/demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rruxandra/demo/teams","hooks_url":"https://api.github.com/repos/rruxandra/demo/hooks","issue_events_url":"https://api.github.com/repos/rruxandra/demo/issues/events{/number}","events_url":"https://api.github.com/repos/rruxandra/demo/events","assignees_url":"https://api.github.com/repos/rruxandra/demo/assignees{/user}","branches_url":"https://api.github.com/repos/rruxandra/demo/branches{/branch}","tags_url":"https://api.github.com/repos/rruxandra/demo/tags","blobs_url":"https://api.github.com/repos/rruxandra/demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rruxandra/demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rruxandra/demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/rruxandra/demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rruxandra/demo/statuses/{sha}","languages_url":"https://api.github.com/repos/rruxandra/demo/languages","stargazers_url":"https://api.github.com/repos/rruxandra/demo/stargazers","contributors_url":"https://api.github.com/repos/rruxandra/demo/contributors","subscribers_url":"https://api.github.com/repos/rruxandra/demo/subscribers","subscription_url":"https://api.github.com/repos/rruxandra/demo/subscription","commits_url":"https://api.github.com/repos/rruxandra/demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/rruxandra/demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/rruxandra/demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/rruxandra/demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/rruxandra/demo/contents/{+path}","compare_url":"https://api.github.com/repos/rruxandra/demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rruxandra/demo/merges","archive_url":"https://api.github.com/repos/rruxandra/demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rruxandra/demo/downloads","issues_url":"https://api.github.com/repos/rruxandra/demo/issues{/number}","pulls_url":"https://api.github.com/repos/rruxandra/demo/pulls{/number}","milestones_url":"https://api.github.com/repos/rruxandra/demo/milestones{/number}","notifications_url":"https://api.github.com/repos/rruxandra/demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rruxandra/demo/labels{/name}","releases_url":"https://api.github.com/repos/rruxandra/demo/releases{/id}","created_at":"2015-07-21T14:48:05Z","updated_at":"2015-07-21T15:09:02Z","pushed_at":"2015-07-22T12:59:16Z","git_url":"git://github.com/rruxandra/demo.git","ssh_url":"git@github.com:rruxandra/demo.git","clone_url":"https://github.com/rruxandra/demo.git","svn_url":"https://github.com/rruxandra/demo","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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":"rruxandra:master","ref":"master","sha":"a813ce37164bdae9b2d14345dbcde0aef3fb5747","user":{"login":"rruxandra","id":1734920,"avatar_url":"https://avatars.githubusercontent.com/u/1734920?v=3","gravatar_id":"","url":"https://api.github.com/users/rruxandra","html_url":"https://github.com/rruxandra","followers_url":"https://api.github.com/users/rruxandra/followers","following_url":"https://api.github.com/users/rruxandra/following{/other_user}","gists_url":"https://api.github.com/users/rruxandra/gists{/gist_id}","starred_url":"https://api.github.com/users/rruxandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rruxandra/subscriptions","organizations_url":"https://api.github.com/users/rruxandra/orgs","repos_url":"https://api.github.com/users/rruxandra/repos","events_url":"https://api.github.com/users/rruxandra/events{/privacy}","received_events_url":"https://api.github.com/users/rruxandra/received_events","type":"User","site_admin":false},"repo":{"id":39451471,"name":"demo","full_name":"rruxandra/demo","owner":{"login":"rruxandra","id":1734920,"avatar_url":"https://avatars.githubusercontent.com/u/1734920?v=3","gravatar_id":"","url":"https://api.github.com/users/rruxandra","html_url":"https://github.com/rruxandra","followers_url":"https://api.github.com/users/rruxandra/followers","following_url":"https://api.github.com/users/rruxandra/following{/other_user}","gists_url":"https://api.github.com/users/rruxandra/gists{/gist_id}","starred_url":"https://api.github.com/users/rruxandra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rruxandra/subscriptions","organizations_url":"https://api.github.com/users/rruxandra/orgs","repos_url":"https://api.github.com/users/rruxandra/repos","events_url":"https://api.github.com/users/rruxandra/events{/privacy}","received_events_url":"https://api.github.com/users/rruxandra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rruxandra/demo","description":"","fork":false,"url":"https://api.github.com/repos/rruxandra/demo","forks_url":"https://api.github.com/repos/rruxandra/demo/forks","keys_url":"https://api.github.com/repos/rruxandra/demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rruxandra/demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rruxandra/demo/teams","hooks_url":"https://api.github.com/repos/rruxandra/demo/hooks","issue_events_url":"https://api.github.com/repos/rruxandra/demo/issues/events{/number}","events_url":"https://api.github.com/repos/rruxandra/demo/events","assignees_url":"https://api.github.com/repos/rruxandra/demo/assignees{/user}","branches_url":"https://api.github.com/repos/rruxandra/demo/branches{/branch}","tags_url":"https://api.github.com/repos/rruxandra/demo/tags","blobs_url":"https://api.github.com/repos/rruxandra/demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rruxandra/demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rruxandra/demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/rruxandra/demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rruxandra/demo/statuses/{sha}","languages_url":"https://api.github.com/repos/rruxandra/demo/languages","stargazers_url":"https://api.github.com/repos/rruxandra/demo/stargazers","contributors_url":"https://api.github.com/repos/rruxandra/demo/contributors","subscribers_url":"https://api.github.com/repos/rruxandra/demo/subscribers","subscription_url":"https://api.github.com/repos/rruxandra/demo/subscription","commits_url":"https://api.github.com/repos/rruxandra/demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/rruxandra/demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/rruxandra/demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/rruxandra/demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/rruxandra/demo/contents/{+path}","compare_url":"https://api.github.com/repos/rruxandra/demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rruxandra/demo/merges","archive_url":"https://api.github.com/repos/rruxandra/demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rruxandra/demo/downloads","issues_url":"https://api.github.com/repos/rruxandra/demo/issues{/number}","pulls_url":"https://api.github.com/repos/rruxandra/demo/pulls{/number}","milestones_url":"https://api.github.com/repos/rruxandra/demo/milestones{/number}","notifications_url":"https://api.github.com/repos/rruxandra/demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rruxandra/demo/labels{/name}","releases_url":"https://api.github.com/repos/rruxandra/demo/releases{/id}","created_at":"2015-07-21T14:48:05Z","updated_at":"2015-07-21T15:09:02Z","pushed_at":"2015-07-22T12:59:16Z","git_url":"git://github.com/rruxandra/demo.git","ssh_url":"git@github.com:rruxandra/demo.git","clone_url":"https://github.com/rruxandra/demo.git","svn_url":"https://github.com/rruxandra/demo","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/rruxandra/demo/pulls/1"},"html":{"href":"https://github.com/rruxandra/demo/pull/1"},"issue":{"href":"https://api.github.com/repos/rruxandra/demo/issues/1"},"comments":{"href":"https://api.github.com/repos/rruxandra/demo/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rruxandra/demo/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rruxandra/demo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rruxandra/demo/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rruxandra/demo/statuses/ff00c5c77f822848e67669335c9edff50d658002"}}}}