{"action":"created","comment":{"url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/comments/42313388","id":42313388,"diff_hunk":"@@ -0,0 +1,28 @@\n+package com.geekhub.hw2.vehicle;\n+\n+import com.geekhub.hw2.parts.EnergySource;\n+import com.geekhub.hw2.parts.Engine;\n+import com.geekhub.hw2.parts.Gear;\n+\n+public class SolarCar extends Car {\n+    public SolarCar(EnergySource energySource, Engine engine, Gear gear) {","path":"src/com/geekhub/hw2/vehicle/SolarCar.java","position":8,"original_position":8,"commit_id":"07181a6dc6f260bf44494af40bcc4c843d40290d","original_commit_id":"07181a6dc6f260bf44494af40bcc4c843d40290d","user":{"login":"skorichok88","id":5551658,"avatar_url":"https://avatars.githubusercontent.com/u/5551658?v=3","gravatar_id":"","url":"https://api.github.com/users/skorichok88","html_url":"https://github.com/skorichok88","followers_url":"https://api.github.com/users/skorichok88/followers","following_url":"https://api.github.com/users/skorichok88/following{/other_user}","gists_url":"https://api.github.com/users/skorichok88/gists{/gist_id}","starred_url":"https://api.github.com/users/skorichok88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skorichok88/subscriptions","organizations_url":"https://api.github.com/users/skorichok88/orgs","repos_url":"https://api.github.com/users/skorichok88/repos","events_url":"https://api.github.com/users/skorichok88/events{/privacy}","received_events_url":"https://api.github.com/users/skorichok88/received_events","type":"User","site_admin":false},"body":"In this case better to pass concrete implementation as pararameters. \r\nE.g. Now I can do something like that: \"new SolarCar(new GasTank(), new GasolineEngine(), new BoatGear());\"","created_at":"2015-10-17T19:49:36Z","updated_at":"2015-10-17T19:49:36Z","html_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2/pull/2#discussion_r42313388","pull_request_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/comments/42313388"},"html":{"href":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2/pull/2#discussion_r42313388"},"pull_request":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/2","id":47992399,"html_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2/pull/2","diff_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2/pull/2.diff","patch_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2/pull/2.patch","issue_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/issues/2","number":2,"state":"open","locked":false,"title":"Homework 2","user":{"login":"Oleksjuk","id":6533147,"avatar_url":"https://avatars.githubusercontent.com/u/6533147?v=3","gravatar_id":"","url":"https://api.github.com/users/Oleksjuk","html_url":"https://github.com/Oleksjuk","followers_url":"https://api.github.com/users/Oleksjuk/followers","following_url":"https://api.github.com/users/Oleksjuk/following{/other_user}","gists_url":"https://api.github.com/users/Oleksjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Oleksjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oleksjuk/subscriptions","organizations_url":"https://api.github.com/users/Oleksjuk/orgs","repos_url":"https://api.github.com/users/Oleksjuk/repos","events_url":"https://api.github.com/users/Oleksjuk/events{/privacy}","received_events_url":"https://api.github.com/users/Oleksjuk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-17T18:31:58Z","updated_at":"2015-10-17T19:49:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21519d719cd7f6e3e67a59c73a7ae6d4ffa4b073","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/2/commits","review_comments_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/2/comments","review_comment_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/issues/2/comments","statuses_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/statuses/07181a6dc6f260bf44494af40bcc4c843d40290d","head":{"label":"Oleksjuk:master","ref":"master","sha":"07181a6dc6f260bf44494af40bcc4c843d40290d","user":{"login":"Oleksjuk","id":6533147,"avatar_url":"https://avatars.githubusercontent.com/u/6533147?v=3","gravatar_id":"","url":"https://api.github.com/users/Oleksjuk","html_url":"https://github.com/Oleksjuk","followers_url":"https://api.github.com/users/Oleksjuk/followers","following_url":"https://api.github.com/users/Oleksjuk/following{/other_user}","gists_url":"https://api.github.com/users/Oleksjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Oleksjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oleksjuk/subscriptions","organizations_url":"https://api.github.com/users/Oleksjuk/orgs","repos_url":"https://api.github.com/users/Oleksjuk/repos","events_url":"https://api.github.com/users/Oleksjuk/events{/privacy}","received_events_url":"https://api.github.com/users/Oleksjuk/received_events","type":"User","site_admin":false},"repo":{"id":44339429,"name":"HomeTaskWeek2","full_name":"Oleksjuk/HomeTaskWeek2","owner":{"login":"Oleksjuk","id":6533147,"avatar_url":"https://avatars.githubusercontent.com/u/6533147?v=3","gravatar_id":"","url":"https://api.github.com/users/Oleksjuk","html_url":"https://github.com/Oleksjuk","followers_url":"https://api.github.com/users/Oleksjuk/followers","following_url":"https://api.github.com/users/Oleksjuk/following{/other_user}","gists_url":"https://api.github.com/users/Oleksjuk/gists{/gist_id}","starred_url":"https://api.github.com/users/Oleksjuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Oleksjuk/subscriptions","organizations_url":"https://api.github.com/users/Oleksjuk/orgs","repos_url":"https://api.github.com/users/Oleksjuk/repos","events_url":"https://api.github.com/users/Oleksjuk/events{/privacy}","received_events_url":"https://api.github.com/users/Oleksjuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Oleksjuk/HomeTaskWeek2","description":"","fork":true,"url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2","forks_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/forks","keys_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/teams","hooks_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/hooks","issue_events_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/issues/events{/number}","events_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/events","assignees_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/assignees{/user}","branches_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/branches{/branch}","tags_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/tags","blobs_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/statuses/{sha}","languages_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/languages","stargazers_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/stargazers","contributors_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/contributors","subscribers_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/subscribers","subscription_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/subscription","commits_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/contents/{+path}","compare_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/merges","archive_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/downloads","issues_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/issues{/number}","pulls_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/pulls{/number}","milestones_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/milestones{/number}","notifications_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/labels{/name}","releases_url":"https://api.github.com/repos/Oleksjuk/HomeTaskWeek2/releases{/id}","created_at":"2015-10-15T19:10:37Z","updated_at":"2015-10-15T19:10:38Z","pushed_at":"2015-10-17T18:09:11Z","git_url":"git://github.com/Oleksjuk/HomeTaskWeek2.git","ssh_url":"git@github.com:Oleksjuk/HomeTaskWeek2.git","clone_url":"https://github.com/Oleksjuk/HomeTaskWeek2.git","svn_url":"https://github.com/Oleksjuk/HomeTaskWeek2","homepage":null,"size":0,"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":"GeekHubJava4WebThursday:master","ref":"master","sha":"6b046e57201e68afab2825facf695409d45f61f4","user":{"login":"GeekHubJava4WebThursday","id":15046934,"avatar_url":"https://avatars.githubusercontent.com/u/15046934?v=3","gravatar_id":"","url":"https://api.github.com/users/GeekHubJava4WebThursday","html_url":"https://github.com/GeekHubJava4WebThursday","followers_url":"https://api.github.com/users/GeekHubJava4WebThursday/followers","following_url":"https://api.github.com/users/GeekHubJava4WebThursday/following{/other_user}","gists_url":"https://api.github.com/users/GeekHubJava4WebThursday/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHubJava4WebThursday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHubJava4WebThursday/subscriptions","organizations_url":"https://api.github.com/users/GeekHubJava4WebThursday/orgs","repos_url":"https://api.github.com/users/GeekHubJava4WebThursday/repos","events_url":"https://api.github.com/users/GeekHubJava4WebThursday/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHubJava4WebThursday/received_events","type":"Organization","site_admin":false},"repo":{"id":44322954,"name":"HomeTaskWeek2","full_name":"GeekHubJava4WebThursday/HomeTaskWeek2","owner":{"login":"GeekHubJava4WebThursday","id":15046934,"avatar_url":"https://avatars.githubusercontent.com/u/15046934?v=3","gravatar_id":"","url":"https://api.github.com/users/GeekHubJava4WebThursday","html_url":"https://github.com/GeekHubJava4WebThursday","followers_url":"https://api.github.com/users/GeekHubJava4WebThursday/followers","following_url":"https://api.github.com/users/GeekHubJava4WebThursday/following{/other_user}","gists_url":"https://api.github.com/users/GeekHubJava4WebThursday/gists{/gist_id}","starred_url":"https://api.github.com/users/GeekHubJava4WebThursday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeekHubJava4WebThursday/subscriptions","organizations_url":"https://api.github.com/users/GeekHubJava4WebThursday/orgs","repos_url":"https://api.github.com/users/GeekHubJava4WebThursday/repos","events_url":"https://api.github.com/users/GeekHubJava4WebThursday/events{/privacy}","received_events_url":"https://api.github.com/users/GeekHubJava4WebThursday/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2","description":"","fork":false,"url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2","forks_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/forks","keys_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/teams","hooks_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/hooks","issue_events_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/issues/events{/number}","events_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/events","assignees_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/assignees{/user}","branches_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/branches{/branch}","tags_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/tags","blobs_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/statuses/{sha}","languages_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/languages","stargazers_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/stargazers","contributors_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/contributors","subscribers_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/subscribers","subscription_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/subscription","commits_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/contents/{+path}","compare_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/merges","archive_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/downloads","issues_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/issues{/number}","pulls_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls{/number}","milestones_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/milestones{/number}","notifications_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/labels{/name}","releases_url":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/releases{/id}","created_at":"2015-10-15T14:26:13Z","updated_at":"2015-10-15T14:34:06Z","pushed_at":"2015-10-17T18:31:58Z","git_url":"git://github.com/GeekHubJava4WebThursday/HomeTaskWeek2.git","ssh_url":"git@github.com:GeekHubJava4WebThursday/HomeTaskWeek2.git","clone_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2.git","svn_url":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2","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":15,"mirror_url":null,"open_issues_count":2,"forks":15,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/2"},"html":{"href":"https://github.com/GeekHubJava4WebThursday/HomeTaskWeek2/pull/2"},"issue":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/issues/2"},"comments":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/GeekHubJava4WebThursday/HomeTaskWeek2/statuses/07181a6dc6f260bf44494af40bcc4c843d40290d"}}}}