{"action":"created","comment":{"url":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/comments/59402769","id":59402769,"diff_hunk":"@@ -27,7 +31,10 @@ public DataProcessor(List<RoadAccident> roadAccidentList){\n      * @return\n      */\n     public RoadAccident getAccidentByIndex7(String index){\n-        return null;\n+        Optional<RoadAccident> foundRoadAccident = roadAccidentList.stream()\n+                .filter(accident -> accident.getAccidentId().equals(index))\n+                .findFirst();\n+        return foundRoadAccident.isPresent()?foundRoadAccident.get():null;","path":"src/main/java/com/epam/processor/DataProcessor.java","position":110,"original_position":24,"commit_id":"fa3aeac98a8622d9b9a4e676133efd2531212044","original_commit_id":"10e405681e54c74d9c4cd052b009941a84952a02","user":{"login":"gavin2lee","id":7447034,"avatar_url":"https://avatars.githubusercontent.com/u/7447034?v=3","gravatar_id":"","url":"https://api.github.com/users/gavin2lee","html_url":"https://github.com/gavin2lee","followers_url":"https://api.github.com/users/gavin2lee/followers","following_url":"https://api.github.com/users/gavin2lee/following{/other_user}","gists_url":"https://api.github.com/users/gavin2lee/gists{/gist_id}","starred_url":"https://api.github.com/users/gavin2lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavin2lee/subscriptions","organizations_url":"https://api.github.com/users/gavin2lee/orgs","repos_url":"https://api.github.com/users/gavin2lee/repos","events_url":"https://api.github.com/users/gavin2lee/events{/privacy}","received_events_url":"https://api.github.com/users/gavin2lee/received_events","type":"User","site_admin":false},"body":"Hi,how could u use 8's api here?? Optional was introduced in Java 8, not 7. :)","created_at":"2016-04-12T16:00:55Z","updated_at":"2016-04-12T16:00:55Z","html_url":"https://github.com/bagedan/EPAM-JMP/pull/1#discussion_r59402769","pull_request_url":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/comments/59402769"},"html":{"href":"https://github.com/bagedan/EPAM-JMP/pull/1#discussion_r59402769"},"pull_request":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/1","id":65635868,"html_url":"https://github.com/bagedan/EPAM-JMP/pull/1","diff_url":"https://github.com/bagedan/EPAM-JMP/pull/1.diff","patch_url":"https://github.com/bagedan/EPAM-JMP/pull/1.patch","issue_url":"https://api.github.com/repos/bagedan/EPAM-JMP/issues/1","number":1,"state":"open","locked":false,"title":"[DO NOT MERGE, JUST FOR REVIEW] Done from Simon Guo","user":{"login":"SimonKwok","id":4538986,"avatar_url":"https://avatars.githubusercontent.com/u/4538986?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKwok","html_url":"https://github.com/SimonKwok","followers_url":"https://api.github.com/users/SimonKwok/followers","following_url":"https://api.github.com/users/SimonKwok/following{/other_user}","gists_url":"https://api.github.com/users/SimonKwok/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKwok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKwok/subscriptions","organizations_url":"https://api.github.com/users/SimonKwok/orgs","repos_url":"https://api.github.com/users/SimonKwok/repos","events_url":"https://api.github.com/users/SimonKwok/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKwok/received_events","type":"User","site_admin":false},"body":"Made small change on unit test as well, please help to review and let me know if there is anything incorrect. Thanks for preparing this.\r\n\r\n\r\nSimon Guo","created_at":"2016-04-07T14:07:18Z","updated_at":"2016-04-12T16:00:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9193a6ffad6334532ac4b54a74d6fb5235863bf2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/1/commits","review_comments_url":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/1/comments","review_comment_url":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bagedan/EPAM-JMP/issues/1/comments","statuses_url":"https://api.github.com/repos/bagedan/EPAM-JMP/statuses/fa3aeac98a8622d9b9a4e676133efd2531212044","head":{"label":"SimonKwok:master","ref":"master","sha":"fa3aeac98a8622d9b9a4e676133efd2531212044","user":{"login":"SimonKwok","id":4538986,"avatar_url":"https://avatars.githubusercontent.com/u/4538986?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKwok","html_url":"https://github.com/SimonKwok","followers_url":"https://api.github.com/users/SimonKwok/followers","following_url":"https://api.github.com/users/SimonKwok/following{/other_user}","gists_url":"https://api.github.com/users/SimonKwok/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKwok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKwok/subscriptions","organizations_url":"https://api.github.com/users/SimonKwok/orgs","repos_url":"https://api.github.com/users/SimonKwok/repos","events_url":"https://api.github.com/users/SimonKwok/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKwok/received_events","type":"User","site_admin":false},"repo":{"id":55691861,"name":"EPAM-JMP","full_name":"SimonKwok/EPAM-JMP","owner":{"login":"SimonKwok","id":4538986,"avatar_url":"https://avatars.githubusercontent.com/u/4538986?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKwok","html_url":"https://github.com/SimonKwok","followers_url":"https://api.github.com/users/SimonKwok/followers","following_url":"https://api.github.com/users/SimonKwok/following{/other_user}","gists_url":"https://api.github.com/users/SimonKwok/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKwok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKwok/subscriptions","organizations_url":"https://api.github.com/users/SimonKwok/orgs","repos_url":"https://api.github.com/users/SimonKwok/repos","events_url":"https://api.github.com/users/SimonKwok/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKwok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SimonKwok/EPAM-JMP","description":"","fork":true,"url":"https://api.github.com/repos/SimonKwok/EPAM-JMP","forks_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/forks","keys_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/teams","hooks_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/hooks","issue_events_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/issues/events{/number}","events_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/events","assignees_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/assignees{/user}","branches_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/branches{/branch}","tags_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/tags","blobs_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/statuses/{sha}","languages_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/languages","stargazers_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/stargazers","contributors_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/contributors","subscribers_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/subscribers","subscription_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/subscription","commits_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/contents/{+path}","compare_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/merges","archive_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/downloads","issues_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/issues{/number}","pulls_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/pulls{/number}","milestones_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/milestones{/number}","notifications_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/labels{/name}","releases_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/releases{/id}","deployments_url":"https://api.github.com/repos/SimonKwok/EPAM-JMP/deployments","created_at":"2016-04-07T12:13:38Z","updated_at":"2016-04-07T12:13:39Z","pushed_at":"2016-04-08T13:58:38Z","git_url":"git://github.com/SimonKwok/EPAM-JMP.git","ssh_url":"git@github.com:SimonKwok/EPAM-JMP.git","clone_url":"https://github.com/SimonKwok/EPAM-JMP.git","svn_url":"https://github.com/SimonKwok/EPAM-JMP","homepage":null,"size":2718,"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":"bagedan:master","ref":"master","sha":"cfb87f3d25ad73c9bce5e0bbf70891c9c7babb41","user":{"login":"bagedan","id":4011890,"avatar_url":"https://avatars.githubusercontent.com/u/4011890?v=3","gravatar_id":"","url":"https://api.github.com/users/bagedan","html_url":"https://github.com/bagedan","followers_url":"https://api.github.com/users/bagedan/followers","following_url":"https://api.github.com/users/bagedan/following{/other_user}","gists_url":"https://api.github.com/users/bagedan/gists{/gist_id}","starred_url":"https://api.github.com/users/bagedan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagedan/subscriptions","organizations_url":"https://api.github.com/users/bagedan/orgs","repos_url":"https://api.github.com/users/bagedan/repos","events_url":"https://api.github.com/users/bagedan/events{/privacy}","received_events_url":"https://api.github.com/users/bagedan/received_events","type":"User","site_admin":false},"repo":{"id":55405358,"name":"EPAM-JMP","full_name":"bagedan/EPAM-JMP","owner":{"login":"bagedan","id":4011890,"avatar_url":"https://avatars.githubusercontent.com/u/4011890?v=3","gravatar_id":"","url":"https://api.github.com/users/bagedan","html_url":"https://github.com/bagedan","followers_url":"https://api.github.com/users/bagedan/followers","following_url":"https://api.github.com/users/bagedan/following{/other_user}","gists_url":"https://api.github.com/users/bagedan/gists{/gist_id}","starred_url":"https://api.github.com/users/bagedan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bagedan/subscriptions","organizations_url":"https://api.github.com/users/bagedan/orgs","repos_url":"https://api.github.com/users/bagedan/repos","events_url":"https://api.github.com/users/bagedan/events{/privacy}","received_events_url":"https://api.github.com/users/bagedan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bagedan/EPAM-JMP","description":"","fork":false,"url":"https://api.github.com/repos/bagedan/EPAM-JMP","forks_url":"https://api.github.com/repos/bagedan/EPAM-JMP/forks","keys_url":"https://api.github.com/repos/bagedan/EPAM-JMP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bagedan/EPAM-JMP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bagedan/EPAM-JMP/teams","hooks_url":"https://api.github.com/repos/bagedan/EPAM-JMP/hooks","issue_events_url":"https://api.github.com/repos/bagedan/EPAM-JMP/issues/events{/number}","events_url":"https://api.github.com/repos/bagedan/EPAM-JMP/events","assignees_url":"https://api.github.com/repos/bagedan/EPAM-JMP/assignees{/user}","branches_url":"https://api.github.com/repos/bagedan/EPAM-JMP/branches{/branch}","tags_url":"https://api.github.com/repos/bagedan/EPAM-JMP/tags","blobs_url":"https://api.github.com/repos/bagedan/EPAM-JMP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bagedan/EPAM-JMP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bagedan/EPAM-JMP/git/refs{/sha}","trees_url":"https://api.github.com/repos/bagedan/EPAM-JMP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bagedan/EPAM-JMP/statuses/{sha}","languages_url":"https://api.github.com/repos/bagedan/EPAM-JMP/languages","stargazers_url":"https://api.github.com/repos/bagedan/EPAM-JMP/stargazers","contributors_url":"https://api.github.com/repos/bagedan/EPAM-JMP/contributors","subscribers_url":"https://api.github.com/repos/bagedan/EPAM-JMP/subscribers","subscription_url":"https://api.github.com/repos/bagedan/EPAM-JMP/subscription","commits_url":"https://api.github.com/repos/bagedan/EPAM-JMP/commits{/sha}","git_commits_url":"https://api.github.com/repos/bagedan/EPAM-JMP/git/commits{/sha}","comments_url":"https://api.github.com/repos/bagedan/EPAM-JMP/comments{/number}","issue_comment_url":"https://api.github.com/repos/bagedan/EPAM-JMP/issues/comments{/number}","contents_url":"https://api.github.com/repos/bagedan/EPAM-JMP/contents/{+path}","compare_url":"https://api.github.com/repos/bagedan/EPAM-JMP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bagedan/EPAM-JMP/merges","archive_url":"https://api.github.com/repos/bagedan/EPAM-JMP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bagedan/EPAM-JMP/downloads","issues_url":"https://api.github.com/repos/bagedan/EPAM-JMP/issues{/number}","pulls_url":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls{/number}","milestones_url":"https://api.github.com/repos/bagedan/EPAM-JMP/milestones{/number}","notifications_url":"https://api.github.com/repos/bagedan/EPAM-JMP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bagedan/EPAM-JMP/labels{/name}","releases_url":"https://api.github.com/repos/bagedan/EPAM-JMP/releases{/id}","deployments_url":"https://api.github.com/repos/bagedan/EPAM-JMP/deployments","created_at":"2016-04-04T11:18:51Z","updated_at":"2016-04-08T03:30:26Z","pushed_at":"2016-04-12T15:21:31Z","git_url":"git://github.com/bagedan/EPAM-JMP.git","ssh_url":"git@github.com:bagedan/EPAM-JMP.git","clone_url":"https://github.com/bagedan/EPAM-JMP.git","svn_url":"https://github.com/bagedan/EPAM-JMP","homepage":null,"size":2731,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":3,"forks":13,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/1"},"html":{"href":"https://github.com/bagedan/EPAM-JMP/pull/1"},"issue":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/issues/1"},"comments":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/bagedan/EPAM-JMP/statuses/fa3aeac98a8622d9b9a4e676133efd2531212044"}}}}