{"action":"created","comment":{"url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/comments/77301075","id":77301075,"diff_hunk":"@@ -0,0 +1,36 @@\n+import java.lang.reflect.InvocationHandler;\n+import java.lang.reflect.Method;\n+import java.lang.reflect.Proxy;\n+\n+/**\n+ * Created by Марат on 01.09.2016.\n+ */\n+public class PhoneBuilderInvocationHandler implements InvocationHandler {\n+    private Phone wrapped;\n+\n+    public PhoneBuilderInvocationHandler(Phone phone) {\n+        wrapped = phone;\n+    }\n+\n+    @Override\n+    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n+        long time = System.currentTimeMillis();\n+        Object dataOutput = method.invoke(wrapped, args);\n+        time = System.currentTimeMillis() - time;\n+        System.out.println(method.getName() + \" spend \" + time + \" ms\");\n+        return dataOutput;\n+    }\n+\n+    public static Phone createPhoneBuilder(Phone phone) {","path":"day9/src/PhoneBuilderInvocationHandler.java","position":24,"original_position":24,"commit_id":"b6ba6edad65431464a9d7b72e3f0e41bd6c6a692","original_commit_id":"b6ba6edad65431464a9d7b72e3f0e41bd6c6a692","user":{"login":"ainurminibaev","id":3703516,"avatar_url":"https://avatars.githubusercontent.com/u/3703516?v=3","gravatar_id":"","url":"https://api.github.com/users/ainurminibaev","html_url":"https://github.com/ainurminibaev","followers_url":"https://api.github.com/users/ainurminibaev/followers","following_url":"https://api.github.com/users/ainurminibaev/following{/other_user}","gists_url":"https://api.github.com/users/ainurminibaev/gists{/gist_id}","starred_url":"https://api.github.com/users/ainurminibaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ainurminibaev/subscriptions","organizations_url":"https://api.github.com/users/ainurminibaev/orgs","repos_url":"https://api.github.com/users/ainurminibaev/repos","events_url":"https://api.github.com/users/ainurminibaev/events{/privacy}","received_events_url":"https://api.github.com/users/ainurminibaev/received_events","type":"User","site_admin":false},"body":"Сделать этот метод частью билдера\r\nнапример withTimeTracing()","created_at":"2016-09-02T06:53:39Z","updated_at":"2016-09-02T06:53:39Z","html_url":"https://github.com/Solncev/jblab-summer-practice-msolncev/pull/12#discussion_r77301075","pull_request_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/comments/77301075"},"html":{"href":"https://github.com/Solncev/jblab-summer-practice-msolncev/pull/12#discussion_r77301075"},"pull_request":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/12","id":83689149,"html_url":"https://github.com/Solncev/jblab-summer-practice-msolncev/pull/12","diff_url":"https://github.com/Solncev/jblab-summer-practice-msolncev/pull/12.diff","patch_url":"https://github.com/Solncev/jblab-summer-practice-msolncev/pull/12.patch","issue_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues/12","number":12,"state":"open","locked":false,"title":"[SP16-82] Day9 Tasks added.","user":{"login":"Solncev","id":19519830,"avatar_url":"https://avatars.githubusercontent.com/u/19519830?v=3","gravatar_id":"","url":"https://api.github.com/users/Solncev","html_url":"https://github.com/Solncev","followers_url":"https://api.github.com/users/Solncev/followers","following_url":"https://api.github.com/users/Solncev/following{/other_user}","gists_url":"https://api.github.com/users/Solncev/gists{/gist_id}","starred_url":"https://api.github.com/users/Solncev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solncev/subscriptions","organizations_url":"https://api.github.com/users/Solncev/orgs","repos_url":"https://api.github.com/users/Solncev/repos","events_url":"https://api.github.com/users/Solncev/events{/privacy}","received_events_url":"https://api.github.com/users/Solncev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-01T19:07:51Z","updated_at":"2016-09-02T06:53:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"136989489edaa56efb09842caa0ddfd8529167a9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/12/commits","review_comments_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/12/comments","review_comment_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues/12/comments","statuses_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/statuses/b6ba6edad65431464a9d7b72e3f0e41bd6c6a692","head":{"label":"Solncev:SP16-82","ref":"SP16-82","sha":"b6ba6edad65431464a9d7b72e3f0e41bd6c6a692","user":{"login":"Solncev","id":19519830,"avatar_url":"https://avatars.githubusercontent.com/u/19519830?v=3","gravatar_id":"","url":"https://api.github.com/users/Solncev","html_url":"https://github.com/Solncev","followers_url":"https://api.github.com/users/Solncev/followers","following_url":"https://api.github.com/users/Solncev/following{/other_user}","gists_url":"https://api.github.com/users/Solncev/gists{/gist_id}","starred_url":"https://api.github.com/users/Solncev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solncev/subscriptions","organizations_url":"https://api.github.com/users/Solncev/orgs","repos_url":"https://api.github.com/users/Solncev/repos","events_url":"https://api.github.com/users/Solncev/events{/privacy}","received_events_url":"https://api.github.com/users/Solncev/received_events","type":"User","site_admin":false},"repo":{"id":65834580,"name":"jblab-summer-practice-msolncev","full_name":"Solncev/jblab-summer-practice-msolncev","owner":{"login":"Solncev","id":19519830,"avatar_url":"https://avatars.githubusercontent.com/u/19519830?v=3","gravatar_id":"","url":"https://api.github.com/users/Solncev","html_url":"https://github.com/Solncev","followers_url":"https://api.github.com/users/Solncev/followers","following_url":"https://api.github.com/users/Solncev/following{/other_user}","gists_url":"https://api.github.com/users/Solncev/gists{/gist_id}","starred_url":"https://api.github.com/users/Solncev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solncev/subscriptions","organizations_url":"https://api.github.com/users/Solncev/orgs","repos_url":"https://api.github.com/users/Solncev/repos","events_url":"https://api.github.com/users/Solncev/events{/privacy}","received_events_url":"https://api.github.com/users/Solncev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Solncev/jblab-summer-practice-msolncev","description":null,"fork":false,"url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev","forks_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/forks","keys_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/teams","hooks_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/hooks","issue_events_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues/events{/number}","events_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/events","assignees_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/assignees{/user}","branches_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/branches{/branch}","tags_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/tags","blobs_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/refs{/sha}","trees_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/statuses/{sha}","languages_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/languages","stargazers_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/stargazers","contributors_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/contributors","subscribers_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/subscribers","subscription_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/subscription","commits_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/commits{/sha}","git_commits_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/commits{/sha}","comments_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/comments{/number}","issue_comment_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues/comments{/number}","contents_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/contents/{+path}","compare_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/merges","archive_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/downloads","issues_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues{/number}","pulls_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls{/number}","milestones_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/milestones{/number}","notifications_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/labels{/name}","releases_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/releases{/id}","deployments_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/deployments","created_at":"2016-08-16T16:09:28Z","updated_at":"2016-08-17T14:20:01Z","pushed_at":"2016-09-01T19:07:51Z","git_url":"git://github.com/Solncev/jblab-summer-practice-msolncev.git","ssh_url":"git@github.com:Solncev/jblab-summer-practice-msolncev.git","clone_url":"https://github.com/Solncev/jblab-summer-practice-msolncev.git","svn_url":"https://github.com/Solncev/jblab-summer-practice-msolncev","homepage":null,"size":24,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Solncev:master","ref":"master","sha":"c05ef7a0fd1e9d20edd62977197f98dc7d43b310","user":{"login":"Solncev","id":19519830,"avatar_url":"https://avatars.githubusercontent.com/u/19519830?v=3","gravatar_id":"","url":"https://api.github.com/users/Solncev","html_url":"https://github.com/Solncev","followers_url":"https://api.github.com/users/Solncev/followers","following_url":"https://api.github.com/users/Solncev/following{/other_user}","gists_url":"https://api.github.com/users/Solncev/gists{/gist_id}","starred_url":"https://api.github.com/users/Solncev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solncev/subscriptions","organizations_url":"https://api.github.com/users/Solncev/orgs","repos_url":"https://api.github.com/users/Solncev/repos","events_url":"https://api.github.com/users/Solncev/events{/privacy}","received_events_url":"https://api.github.com/users/Solncev/received_events","type":"User","site_admin":false},"repo":{"id":65834580,"name":"jblab-summer-practice-msolncev","full_name":"Solncev/jblab-summer-practice-msolncev","owner":{"login":"Solncev","id":19519830,"avatar_url":"https://avatars.githubusercontent.com/u/19519830?v=3","gravatar_id":"","url":"https://api.github.com/users/Solncev","html_url":"https://github.com/Solncev","followers_url":"https://api.github.com/users/Solncev/followers","following_url":"https://api.github.com/users/Solncev/following{/other_user}","gists_url":"https://api.github.com/users/Solncev/gists{/gist_id}","starred_url":"https://api.github.com/users/Solncev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Solncev/subscriptions","organizations_url":"https://api.github.com/users/Solncev/orgs","repos_url":"https://api.github.com/users/Solncev/repos","events_url":"https://api.github.com/users/Solncev/events{/privacy}","received_events_url":"https://api.github.com/users/Solncev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Solncev/jblab-summer-practice-msolncev","description":null,"fork":false,"url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev","forks_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/forks","keys_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/teams","hooks_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/hooks","issue_events_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues/events{/number}","events_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/events","assignees_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/assignees{/user}","branches_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/branches{/branch}","tags_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/tags","blobs_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/refs{/sha}","trees_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/statuses/{sha}","languages_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/languages","stargazers_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/stargazers","contributors_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/contributors","subscribers_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/subscribers","subscription_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/subscription","commits_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/commits{/sha}","git_commits_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/git/commits{/sha}","comments_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/comments{/number}","issue_comment_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues/comments{/number}","contents_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/contents/{+path}","compare_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/merges","archive_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/downloads","issues_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues{/number}","pulls_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls{/number}","milestones_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/milestones{/number}","notifications_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/labels{/name}","releases_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/releases{/id}","deployments_url":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/deployments","created_at":"2016-08-16T16:09:28Z","updated_at":"2016-08-17T14:20:01Z","pushed_at":"2016-09-01T19:07:51Z","git_url":"git://github.com/Solncev/jblab-summer-practice-msolncev.git","ssh_url":"git@github.com:Solncev/jblab-summer-practice-msolncev.git","clone_url":"https://github.com/Solncev/jblab-summer-practice-msolncev.git","svn_url":"https://github.com/Solncev/jblab-summer-practice-msolncev","homepage":null,"size":24,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/12"},"html":{"href":"https://github.com/Solncev/jblab-summer-practice-msolncev/pull/12"},"issue":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues/12"},"comments":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/Solncev/jblab-summer-practice-msolncev/statuses/b6ba6edad65431464a9d7b72e3f0e41bd6c6a692"}}}}
{"actor":{"display_login":"ainurminibaev"}}