{"action":"created","comment":{"url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/comments/29612318","id":29612318,"diff_hunk":"@@ -13,30 +12,29 @@\n public class EventPublisher {\n     private static final Logger LOG = LoggerFactory.getLogger(EventPublisher.class);\n     private static List<SseEventSource> listeners = Collections.synchronizedList(new ArrayList<SseEventSource>());\n-    \n-    public static void pub(String message) {\n+\n+    public static void pub(final String message) {\n         LOG.info(\"pushing: \" + message + \" :-O\");\n         synchronized(listeners) {\n-            Iterator<SseEventSource> iterator = listeners.iterator();\n+            final Iterator<SseEventSource> iterator = listeners.iterator();\n             while(iterator.hasNext()) {\n-                SseEventSource sseEventSource = (SseEventSource)iterator.next();\n+                final SseEventSource sseEventSource = iterator.next();\n                 try {\n                     sseEventSource.emitEvent(message);\n                 }\n-                catch(IOException e) {\n+                catch(final IOException e) {\n                     LOG.error(e.getMessage());\n                 }\n             }\n         }\n         return;","path":"src/main/java/hnrc/example/EventPublisher.java","position":33,"original_position":33,"commit_id":"e9ca79f94e03f36ab2d0c0e3ce6157bab7c793e0","original_commit_id":"e9ca79f94e03f36ab2d0c0e3ce6157bab7c793e0","user":{"login":"bronson-io","id":8761574,"avatar_url":"https://avatars.githubusercontent.com/u/8761574?v=3","gravatar_id":"","url":"https://api.github.com/users/bronson-io","html_url":"https://github.com/bronson-io","followers_url":"https://api.github.com/users/bronson-io/followers","following_url":"https://api.github.com/users/bronson-io/following{/other_user}","gists_url":"https://api.github.com/users/bronson-io/gists{/gist_id}","starred_url":"https://api.github.com/users/bronson-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronson-io/subscriptions","organizations_url":"https://api.github.com/users/bronson-io/orgs","repos_url":"https://api.github.com/users/bronson-io/repos","events_url":"https://api.github.com/users/bronson-io/events{/privacy}","received_events_url":"https://api.github.com/users/bronson-io/received_events","type":"User","site_admin":false},"body":"Avoid unnecessary return statements","created_at":"2015-05-04T18:58:50Z","updated_at":"2015-05-04T18:58:50Z","html_url":"https://github.com/hnrc/dropwizard-with-sse/pull/3#discussion_r29612318","pull_request_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/comments/29612318"},"html":{"href":"https://github.com/hnrc/dropwizard-with-sse/pull/3#discussion_r29612318"},"pull_request":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/3","id":26987142,"html_url":"https://github.com/hnrc/dropwizard-with-sse/pull/3","diff_url":"https://github.com/hnrc/dropwizard-with-sse/pull/3.diff","patch_url":"https://github.com/hnrc/dropwizard-with-sse/pull/3.patch","issue_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues/3","number":3,"state":"open","locked":false,"title":"Stuffs","user":{"login":"hnrc","id":234440,"avatar_url":"https://avatars.githubusercontent.com/u/234440?v=3","gravatar_id":"","url":"https://api.github.com/users/hnrc","html_url":"https://github.com/hnrc","followers_url":"https://api.github.com/users/hnrc/followers","following_url":"https://api.github.com/users/hnrc/following{/other_user}","gists_url":"https://api.github.com/users/hnrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hnrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnrc/subscriptions","organizations_url":"https://api.github.com/users/hnrc/orgs","repos_url":"https://api.github.com/users/hnrc/repos","events_url":"https://api.github.com/users/hnrc/events{/privacy}","received_events_url":"https://api.github.com/users/hnrc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-07T20:57:13Z","updated_at":"2015-05-04T18:58:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3fe0abeb9497c4b8fabf7c51bd7208203abe24f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/3/commits","review_comments_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/3/comments","review_comment_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues/3/comments","statuses_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/statuses/e9ca79f94e03f36ab2d0c0e3ce6157bab7c793e0","head":{"label":"hnrc:stuffs","ref":"stuffs","sha":"e9ca79f94e03f36ab2d0c0e3ce6157bab7c793e0","user":{"login":"hnrc","id":234440,"avatar_url":"https://avatars.githubusercontent.com/u/234440?v=3","gravatar_id":"","url":"https://api.github.com/users/hnrc","html_url":"https://github.com/hnrc","followers_url":"https://api.github.com/users/hnrc/followers","following_url":"https://api.github.com/users/hnrc/following{/other_user}","gists_url":"https://api.github.com/users/hnrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hnrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnrc/subscriptions","organizations_url":"https://api.github.com/users/hnrc/orgs","repos_url":"https://api.github.com/users/hnrc/repos","events_url":"https://api.github.com/users/hnrc/events{/privacy}","received_events_url":"https://api.github.com/users/hnrc/received_events","type":"User","site_admin":false},"repo":{"id":14775551,"name":"dropwizard-with-sse","full_name":"hnrc/dropwizard-with-sse","owner":{"login":"hnrc","id":234440,"avatar_url":"https://avatars.githubusercontent.com/u/234440?v=3","gravatar_id":"","url":"https://api.github.com/users/hnrc","html_url":"https://github.com/hnrc","followers_url":"https://api.github.com/users/hnrc/followers","following_url":"https://api.github.com/users/hnrc/following{/other_user}","gists_url":"https://api.github.com/users/hnrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hnrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnrc/subscriptions","organizations_url":"https://api.github.com/users/hnrc/orgs","repos_url":"https://api.github.com/users/hnrc/repos","events_url":"https://api.github.com/users/hnrc/events{/privacy}","received_events_url":"https://api.github.com/users/hnrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hnrc/dropwizard-with-sse","description":"Example project using Dropwizard and Server-sent Events","fork":true,"url":"https://api.github.com/repos/hnrc/dropwizard-with-sse","forks_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/forks","keys_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/teams","hooks_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/hooks","issue_events_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues/events{/number}","events_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/events","assignees_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/assignees{/user}","branches_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/branches{/branch}","tags_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/tags","blobs_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/refs{/sha}","trees_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/statuses/{sha}","languages_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/languages","stargazers_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/stargazers","contributors_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/contributors","subscribers_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/subscribers","subscription_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/subscription","commits_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/commits{/sha}","git_commits_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/commits{/sha}","comments_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/comments{/number}","issue_comment_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues/comments{/number}","contents_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/contents/{+path}","compare_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/merges","archive_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/downloads","issues_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues{/number}","pulls_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls{/number}","milestones_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/milestones{/number}","notifications_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/labels{/name}","releases_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/releases{/id}","created_at":"2013-11-28T11:43:30Z","updated_at":"2014-10-12T15:35:40Z","pushed_at":"2015-05-04T18:52:50Z","git_url":"git://github.com/hnrc/dropwizard-with-sse.git","ssh_url":"git@github.com:hnrc/dropwizard-with-sse.git","clone_url":"https://github.com/hnrc/dropwizard-with-sse.git","svn_url":"https://github.com/hnrc/dropwizard-with-sse","homepage":null,"size":258,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"hnrc:master","ref":"master","sha":"f404e6355899363115f4819a583cdb9ac41e7c69","user":{"login":"hnrc","id":234440,"avatar_url":"https://avatars.githubusercontent.com/u/234440?v=3","gravatar_id":"","url":"https://api.github.com/users/hnrc","html_url":"https://github.com/hnrc","followers_url":"https://api.github.com/users/hnrc/followers","following_url":"https://api.github.com/users/hnrc/following{/other_user}","gists_url":"https://api.github.com/users/hnrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hnrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnrc/subscriptions","organizations_url":"https://api.github.com/users/hnrc/orgs","repos_url":"https://api.github.com/users/hnrc/repos","events_url":"https://api.github.com/users/hnrc/events{/privacy}","received_events_url":"https://api.github.com/users/hnrc/received_events","type":"User","site_admin":false},"repo":{"id":14775551,"name":"dropwizard-with-sse","full_name":"hnrc/dropwizard-with-sse","owner":{"login":"hnrc","id":234440,"avatar_url":"https://avatars.githubusercontent.com/u/234440?v=3","gravatar_id":"","url":"https://api.github.com/users/hnrc","html_url":"https://github.com/hnrc","followers_url":"https://api.github.com/users/hnrc/followers","following_url":"https://api.github.com/users/hnrc/following{/other_user}","gists_url":"https://api.github.com/users/hnrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hnrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnrc/subscriptions","organizations_url":"https://api.github.com/users/hnrc/orgs","repos_url":"https://api.github.com/users/hnrc/repos","events_url":"https://api.github.com/users/hnrc/events{/privacy}","received_events_url":"https://api.github.com/users/hnrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hnrc/dropwizard-with-sse","description":"Example project using Dropwizard and Server-sent Events","fork":true,"url":"https://api.github.com/repos/hnrc/dropwizard-with-sse","forks_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/forks","keys_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/teams","hooks_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/hooks","issue_events_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues/events{/number}","events_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/events","assignees_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/assignees{/user}","branches_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/branches{/branch}","tags_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/tags","blobs_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/refs{/sha}","trees_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/statuses/{sha}","languages_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/languages","stargazers_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/stargazers","contributors_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/contributors","subscribers_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/subscribers","subscription_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/subscription","commits_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/commits{/sha}","git_commits_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/git/commits{/sha}","comments_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/comments{/number}","issue_comment_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues/comments{/number}","contents_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/contents/{+path}","compare_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/merges","archive_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/downloads","issues_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues{/number}","pulls_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls{/number}","milestones_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/milestones{/number}","notifications_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/labels{/name}","releases_url":"https://api.github.com/repos/hnrc/dropwizard-with-sse/releases{/id}","created_at":"2013-11-28T11:43:30Z","updated_at":"2014-10-12T15:35:40Z","pushed_at":"2015-05-04T18:52:50Z","git_url":"git://github.com/hnrc/dropwizard-with-sse.git","ssh_url":"git@github.com:hnrc/dropwizard-with-sse.git","clone_url":"https://github.com/hnrc/dropwizard-with-sse.git","svn_url":"https://github.com/hnrc/dropwizard-with-sse","homepage":null,"size":258,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/3"},"html":{"href":"https://github.com/hnrc/dropwizard-with-sse/pull/3"},"issue":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues/3"},"comments":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/hnrc/dropwizard-with-sse/statuses/e9ca79f94e03f36ab2d0c0e3ce6157bab7c793e0"}}}}