{"action":"created","comment":{"url":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/comments/58100947","id":58100947,"diff_hunk":"@@ -0,0 +1,19 @@\n+package org.foo.training.snake.util;\n+\n+public class LethalMoveException extends Exception {\n+\t\n+    /**\n+\t * \n+\t */\n+\tprivate static final long serialVersionUID = 6681061903910663309L;\n+\tprivate String message;\n+    \n+    public LethalMoveException(String message) {\n+       this.message = message;","path":"snake/src/main/java/org/foo/training/snake/util/LethalMoveException.java","position":12,"original_position":12,"commit_id":"c68708acc6223ae6c0f0aa58279188ca5f911168","original_commit_id":"c68708acc6223ae6c0f0aa58279188ca5f911168","user":{"login":"szab100","id":10001539,"avatar_url":"https://avatars.githubusercontent.com/u/10001539?v=3","gravatar_id":"","url":"https://api.github.com/users/szab100","html_url":"https://github.com/szab100","followers_url":"https://api.github.com/users/szab100/followers","following_url":"https://api.github.com/users/szab100/following{/other_user}","gists_url":"https://api.github.com/users/szab100/gists{/gist_id}","starred_url":"https://api.github.com/users/szab100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szab100/subscriptions","organizations_url":"https://api.github.com/users/szab100/orgs","repos_url":"https://api.github.com/users/szab100/repos","events_url":"https://api.github.com/users/szab100/events{/privacy}","received_events_url":"https://api.github.com/users/szab100/received_events","type":"User","site_admin":false},"body":"This way you have an exception but anyone who references your exception (casts) to Exception will access the already existing, but uninitialized message field of Exception class. So please remove the message field from this class.\r\n\r\nUse this as constructor instead (call Exception(String message) constructor):\r\n public LethalMoveException(String message) { super(message); }\r\n","created_at":"2016-03-31T18:11:42Z","updated_at":"2016-03-31T18:11:42Z","html_url":"https://github.com/szab100/java_tutorial_snake/pull/5#discussion_r58100947","pull_request_url":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/comments/58100947"},"html":{"href":"https://github.com/szab100/java_tutorial_snake/pull/5#discussion_r58100947"},"pull_request":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/5","id":64828000,"html_url":"https://github.com/szab100/java_tutorial_snake/pull/5","diff_url":"https://github.com/szab100/java_tutorial_snake/pull/5.diff","patch_url":"https://github.com/szab100/java_tutorial_snake/pull/5.patch","issue_url":"https://api.github.com/repos/szab100/java_tutorial_snake/issues/5","number":5,"state":"open","locked":false,"title":"Vmalchenko","user":{"login":"szab100","id":10001539,"avatar_url":"https://avatars.githubusercontent.com/u/10001539?v=3","gravatar_id":"","url":"https://api.github.com/users/szab100","html_url":"https://github.com/szab100","followers_url":"https://api.github.com/users/szab100/followers","following_url":"https://api.github.com/users/szab100/following{/other_user}","gists_url":"https://api.github.com/users/szab100/gists{/gist_id}","starred_url":"https://api.github.com/users/szab100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szab100/subscriptions","organizations_url":"https://api.github.com/users/szab100/orgs","repos_url":"https://api.github.com/users/szab100/repos","events_url":"https://api.github.com/users/szab100/events{/privacy}","received_events_url":"https://api.github.com/users/szab100/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-31T17:30:36Z","updated_at":"2016-03-31T18:11:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab489cae82543752fb5d7440c8c6c4d693ab0653","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/5/commits","review_comments_url":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/5/comments","review_comment_url":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/szab100/java_tutorial_snake/issues/5/comments","statuses_url":"https://api.github.com/repos/szab100/java_tutorial_snake/statuses/c68708acc6223ae6c0f0aa58279188ca5f911168","head":{"label":"szab100:vmalchenko","ref":"vmalchenko","sha":"c68708acc6223ae6c0f0aa58279188ca5f911168","user":{"login":"szab100","id":10001539,"avatar_url":"https://avatars.githubusercontent.com/u/10001539?v=3","gravatar_id":"","url":"https://api.github.com/users/szab100","html_url":"https://github.com/szab100","followers_url":"https://api.github.com/users/szab100/followers","following_url":"https://api.github.com/users/szab100/following{/other_user}","gists_url":"https://api.github.com/users/szab100/gists{/gist_id}","starred_url":"https://api.github.com/users/szab100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szab100/subscriptions","organizations_url":"https://api.github.com/users/szab100/orgs","repos_url":"https://api.github.com/users/szab100/repos","events_url":"https://api.github.com/users/szab100/events{/privacy}","received_events_url":"https://api.github.com/users/szab100/received_events","type":"User","site_admin":false},"repo":{"id":54429046,"name":"java_tutorial_snake","full_name":"szab100/java_tutorial_snake","owner":{"login":"szab100","id":10001539,"avatar_url":"https://avatars.githubusercontent.com/u/10001539?v=3","gravatar_id":"","url":"https://api.github.com/users/szab100","html_url":"https://github.com/szab100","followers_url":"https://api.github.com/users/szab100/followers","following_url":"https://api.github.com/users/szab100/following{/other_user}","gists_url":"https://api.github.com/users/szab100/gists{/gist_id}","starred_url":"https://api.github.com/users/szab100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szab100/subscriptions","organizations_url":"https://api.github.com/users/szab100/orgs","repos_url":"https://api.github.com/users/szab100/repos","events_url":"https://api.github.com/users/szab100/events{/privacy}","received_events_url":"https://api.github.com/users/szab100/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/szab100/java_tutorial_snake","description":"Simple snake game for Java Tutorial mentoring sessions 2016 Q1.","fork":false,"url":"https://api.github.com/repos/szab100/java_tutorial_snake","forks_url":"https://api.github.com/repos/szab100/java_tutorial_snake/forks","keys_url":"https://api.github.com/repos/szab100/java_tutorial_snake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/szab100/java_tutorial_snake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/szab100/java_tutorial_snake/teams","hooks_url":"https://api.github.com/repos/szab100/java_tutorial_snake/hooks","issue_events_url":"https://api.github.com/repos/szab100/java_tutorial_snake/issues/events{/number}","events_url":"https://api.github.com/repos/szab100/java_tutorial_snake/events","assignees_url":"https://api.github.com/repos/szab100/java_tutorial_snake/assignees{/user}","branches_url":"https://api.github.com/repos/szab100/java_tutorial_snake/branches{/branch}","tags_url":"https://api.github.com/repos/szab100/java_tutorial_snake/tags","blobs_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/refs{/sha}","trees_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/szab100/java_tutorial_snake/statuses/{sha}","languages_url":"https://api.github.com/repos/szab100/java_tutorial_snake/languages","stargazers_url":"https://api.github.com/repos/szab100/java_tutorial_snake/stargazers","contributors_url":"https://api.github.com/repos/szab100/java_tutorial_snake/contributors","subscribers_url":"https://api.github.com/repos/szab100/java_tutorial_snake/subscribers","subscription_url":"https://api.github.com/repos/szab100/java_tutorial_snake/subscription","commits_url":"https://api.github.com/repos/szab100/java_tutorial_snake/commits{/sha}","git_commits_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/commits{/sha}","comments_url":"https://api.github.com/repos/szab100/java_tutorial_snake/comments{/number}","issue_comment_url":"https://api.github.com/repos/szab100/java_tutorial_snake/issues/comments{/number}","contents_url":"https://api.github.com/repos/szab100/java_tutorial_snake/contents/{+path}","compare_url":"https://api.github.com/repos/szab100/java_tutorial_snake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/szab100/java_tutorial_snake/merges","archive_url":"https://api.github.com/repos/szab100/java_tutorial_snake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/szab100/java_tutorial_snake/downloads","issues_url":"https://api.github.com/repos/szab100/java_tutorial_snake/issues{/number}","pulls_url":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls{/number}","milestones_url":"https://api.github.com/repos/szab100/java_tutorial_snake/milestones{/number}","notifications_url":"https://api.github.com/repos/szab100/java_tutorial_snake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/szab100/java_tutorial_snake/labels{/name}","releases_url":"https://api.github.com/repos/szab100/java_tutorial_snake/releases{/id}","deployments_url":"https://api.github.com/repos/szab100/java_tutorial_snake/deployments","created_at":"2016-03-21T23:00:42Z","updated_at":"2016-03-23T23:55:22Z","pushed_at":"2016-03-31T17:30:36Z","git_url":"git://github.com/szab100/java_tutorial_snake.git","ssh_url":"git@github.com:szab100/java_tutorial_snake.git","clone_url":"https://github.com/szab100/java_tutorial_snake.git","svn_url":"https://github.com/szab100/java_tutorial_snake","homepage":null,"size":14,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"szab100:master","ref":"master","sha":"cdf56ce7f1397171497a3c8dc31e821ca6618210","user":{"login":"szab100","id":10001539,"avatar_url":"https://avatars.githubusercontent.com/u/10001539?v=3","gravatar_id":"","url":"https://api.github.com/users/szab100","html_url":"https://github.com/szab100","followers_url":"https://api.github.com/users/szab100/followers","following_url":"https://api.github.com/users/szab100/following{/other_user}","gists_url":"https://api.github.com/users/szab100/gists{/gist_id}","starred_url":"https://api.github.com/users/szab100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szab100/subscriptions","organizations_url":"https://api.github.com/users/szab100/orgs","repos_url":"https://api.github.com/users/szab100/repos","events_url":"https://api.github.com/users/szab100/events{/privacy}","received_events_url":"https://api.github.com/users/szab100/received_events","type":"User","site_admin":false},"repo":{"id":54429046,"name":"java_tutorial_snake","full_name":"szab100/java_tutorial_snake","owner":{"login":"szab100","id":10001539,"avatar_url":"https://avatars.githubusercontent.com/u/10001539?v=3","gravatar_id":"","url":"https://api.github.com/users/szab100","html_url":"https://github.com/szab100","followers_url":"https://api.github.com/users/szab100/followers","following_url":"https://api.github.com/users/szab100/following{/other_user}","gists_url":"https://api.github.com/users/szab100/gists{/gist_id}","starred_url":"https://api.github.com/users/szab100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szab100/subscriptions","organizations_url":"https://api.github.com/users/szab100/orgs","repos_url":"https://api.github.com/users/szab100/repos","events_url":"https://api.github.com/users/szab100/events{/privacy}","received_events_url":"https://api.github.com/users/szab100/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/szab100/java_tutorial_snake","description":"Simple snake game for Java Tutorial mentoring sessions 2016 Q1.","fork":false,"url":"https://api.github.com/repos/szab100/java_tutorial_snake","forks_url":"https://api.github.com/repos/szab100/java_tutorial_snake/forks","keys_url":"https://api.github.com/repos/szab100/java_tutorial_snake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/szab100/java_tutorial_snake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/szab100/java_tutorial_snake/teams","hooks_url":"https://api.github.com/repos/szab100/java_tutorial_snake/hooks","issue_events_url":"https://api.github.com/repos/szab100/java_tutorial_snake/issues/events{/number}","events_url":"https://api.github.com/repos/szab100/java_tutorial_snake/events","assignees_url":"https://api.github.com/repos/szab100/java_tutorial_snake/assignees{/user}","branches_url":"https://api.github.com/repos/szab100/java_tutorial_snake/branches{/branch}","tags_url":"https://api.github.com/repos/szab100/java_tutorial_snake/tags","blobs_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/refs{/sha}","trees_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/szab100/java_tutorial_snake/statuses/{sha}","languages_url":"https://api.github.com/repos/szab100/java_tutorial_snake/languages","stargazers_url":"https://api.github.com/repos/szab100/java_tutorial_snake/stargazers","contributors_url":"https://api.github.com/repos/szab100/java_tutorial_snake/contributors","subscribers_url":"https://api.github.com/repos/szab100/java_tutorial_snake/subscribers","subscription_url":"https://api.github.com/repos/szab100/java_tutorial_snake/subscription","commits_url":"https://api.github.com/repos/szab100/java_tutorial_snake/commits{/sha}","git_commits_url":"https://api.github.com/repos/szab100/java_tutorial_snake/git/commits{/sha}","comments_url":"https://api.github.com/repos/szab100/java_tutorial_snake/comments{/number}","issue_comment_url":"https://api.github.com/repos/szab100/java_tutorial_snake/issues/comments{/number}","contents_url":"https://api.github.com/repos/szab100/java_tutorial_snake/contents/{+path}","compare_url":"https://api.github.com/repos/szab100/java_tutorial_snake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/szab100/java_tutorial_snake/merges","archive_url":"https://api.github.com/repos/szab100/java_tutorial_snake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/szab100/java_tutorial_snake/downloads","issues_url":"https://api.github.com/repos/szab100/java_tutorial_snake/issues{/number}","pulls_url":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls{/number}","milestones_url":"https://api.github.com/repos/szab100/java_tutorial_snake/milestones{/number}","notifications_url":"https://api.github.com/repos/szab100/java_tutorial_snake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/szab100/java_tutorial_snake/labels{/name}","releases_url":"https://api.github.com/repos/szab100/java_tutorial_snake/releases{/id}","deployments_url":"https://api.github.com/repos/szab100/java_tutorial_snake/deployments","created_at":"2016-03-21T23:00:42Z","updated_at":"2016-03-23T23:55:22Z","pushed_at":"2016-03-31T17:30:36Z","git_url":"git://github.com/szab100/java_tutorial_snake.git","ssh_url":"git@github.com:szab100/java_tutorial_snake.git","clone_url":"https://github.com/szab100/java_tutorial_snake.git","svn_url":"https://github.com/szab100/java_tutorial_snake","homepage":null,"size":14,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/5"},"html":{"href":"https://github.com/szab100/java_tutorial_snake/pull/5"},"issue":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/issues/5"},"comments":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/szab100/java_tutorial_snake/statuses/c68708acc6223ae6c0f0aa58279188ca5f911168"}}}}