{"action":"created","comment":{"url":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/comments/46967570","id":46967570,"diff_hunk":"@@ -0,0 +1,41 @@\n+package com.tw;\n+\n+public class Length {\n+    private Unit unit;\n+    private double value;\n+    private static final LengthCalculator calculator = new LengthCalculator();\n+\n+    public Length(double value, Unit unit) {\n+        this.value = value;\n+        this.unit = unit;\n+    }\n+\n+    public double convertToBaseValue() {\n+        return this.value * this.unit.getValue();\n+    }\n+\n+    @Override\n+    public boolean equals(Object other) {","path":"homework2/length/src/com/tw/Length.java","position":18,"original_position":18,"commit_id":"09576f8d213428231cfbceaaee681c89269cfcdb","original_commit_id":"09576f8d213428231cfbceaaee681c89269cfcdb","user":{"login":"heaton","id":1105163,"avatar_url":"https://avatars.githubusercontent.com/u/1105163?v=3","gravatar_id":"","url":"https://api.github.com/users/heaton","html_url":"https://github.com/heaton","followers_url":"https://api.github.com/users/heaton/followers","following_url":"https://api.github.com/users/heaton/following{/other_user}","gists_url":"https://api.github.com/users/heaton/gists{/gist_id}","starred_url":"https://api.github.com/users/heaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heaton/subscriptions","organizations_url":"https://api.github.com/users/heaton/orgs","repos_url":"https://api.github.com/users/heaton/repos","events_url":"https://api.github.com/users/heaton/events{/privacy}","received_events_url":"https://api.github.com/users/heaton/received_events","type":"User","site_admin":false},"body":"改equals就要改hashcode，养成好习惯:smile:","created_at":"2015-12-08T15:33:35Z","updated_at":"2015-12-08T15:33:35Z","html_url":"https://github.com/tw-oocamp-201512/homework/pull/8#discussion_r46967570","pull_request_url":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/comments/46967570"},"html":{"href":"https://github.com/tw-oocamp-201512/homework/pull/8#discussion_r46967570"},"pull_request":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/8","id":52517445,"html_url":"https://github.com/tw-oocamp-201512/homework/pull/8","diff_url":"https://github.com/tw-oocamp-201512/homework/pull/8.diff","patch_url":"https://github.com/tw-oocamp-201512/homework/pull/8.patch","issue_url":"https://api.github.com/repos/tw-oocamp-201512/homework/issues/8","number":8,"state":"open","locked":false,"title":"Du Juan' homework","user":{"login":"dujuanxian","id":1219249,"avatar_url":"https://avatars.githubusercontent.com/u/1219249?v=3","gravatar_id":"","url":"https://api.github.com/users/dujuanxian","html_url":"https://github.com/dujuanxian","followers_url":"https://api.github.com/users/dujuanxian/followers","following_url":"https://api.github.com/users/dujuanxian/following{/other_user}","gists_url":"https://api.github.com/users/dujuanxian/gists{/gist_id}","starred_url":"https://api.github.com/users/dujuanxian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dujuanxian/subscriptions","organizations_url":"https://api.github.com/users/dujuanxian/orgs","repos_url":"https://api.github.com/users/dujuanxian/repos","events_url":"https://api.github.com/users/dujuanxian/events{/privacy}","received_events_url":"https://api.github.com/users/dujuanxian/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-03T10:43:00Z","updated_at":"2015-12-08T15:33:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea4d1b9d0e51bd576ba26abac239f66706c4e141","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/8/commits","review_comments_url":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/8/comments","review_comment_url":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tw-oocamp-201512/homework/issues/8/comments","statuses_url":"https://api.github.com/repos/tw-oocamp-201512/homework/statuses/09576f8d213428231cfbceaaee681c89269cfcdb","head":{"label":"dujuanxian:master","ref":"master","sha":"09576f8d213428231cfbceaaee681c89269cfcdb","user":{"login":"dujuanxian","id":1219249,"avatar_url":"https://avatars.githubusercontent.com/u/1219249?v=3","gravatar_id":"","url":"https://api.github.com/users/dujuanxian","html_url":"https://github.com/dujuanxian","followers_url":"https://api.github.com/users/dujuanxian/followers","following_url":"https://api.github.com/users/dujuanxian/following{/other_user}","gists_url":"https://api.github.com/users/dujuanxian/gists{/gist_id}","starred_url":"https://api.github.com/users/dujuanxian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dujuanxian/subscriptions","organizations_url":"https://api.github.com/users/dujuanxian/orgs","repos_url":"https://api.github.com/users/dujuanxian/repos","events_url":"https://api.github.com/users/dujuanxian/events{/privacy}","received_events_url":"https://api.github.com/users/dujuanxian/received_events","type":"User","site_admin":false},"repo":{"id":47325020,"name":"homework","full_name":"dujuanxian/homework","owner":{"login":"dujuanxian","id":1219249,"avatar_url":"https://avatars.githubusercontent.com/u/1219249?v=3","gravatar_id":"","url":"https://api.github.com/users/dujuanxian","html_url":"https://github.com/dujuanxian","followers_url":"https://api.github.com/users/dujuanxian/followers","following_url":"https://api.github.com/users/dujuanxian/following{/other_user}","gists_url":"https://api.github.com/users/dujuanxian/gists{/gist_id}","starred_url":"https://api.github.com/users/dujuanxian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dujuanxian/subscriptions","organizations_url":"https://api.github.com/users/dujuanxian/orgs","repos_url":"https://api.github.com/users/dujuanxian/repos","events_url":"https://api.github.com/users/dujuanxian/events{/privacy}","received_events_url":"https://api.github.com/users/dujuanxian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dujuanxian/homework","description":"每节课的作业都提交到这个仓库里","fork":true,"url":"https://api.github.com/repos/dujuanxian/homework","forks_url":"https://api.github.com/repos/dujuanxian/homework/forks","keys_url":"https://api.github.com/repos/dujuanxian/homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dujuanxian/homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dujuanxian/homework/teams","hooks_url":"https://api.github.com/repos/dujuanxian/homework/hooks","issue_events_url":"https://api.github.com/repos/dujuanxian/homework/issues/events{/number}","events_url":"https://api.github.com/repos/dujuanxian/homework/events","assignees_url":"https://api.github.com/repos/dujuanxian/homework/assignees{/user}","branches_url":"https://api.github.com/repos/dujuanxian/homework/branches{/branch}","tags_url":"https://api.github.com/repos/dujuanxian/homework/tags","blobs_url":"https://api.github.com/repos/dujuanxian/homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dujuanxian/homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dujuanxian/homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/dujuanxian/homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dujuanxian/homework/statuses/{sha}","languages_url":"https://api.github.com/repos/dujuanxian/homework/languages","stargazers_url":"https://api.github.com/repos/dujuanxian/homework/stargazers","contributors_url":"https://api.github.com/repos/dujuanxian/homework/contributors","subscribers_url":"https://api.github.com/repos/dujuanxian/homework/subscribers","subscription_url":"https://api.github.com/repos/dujuanxian/homework/subscription","commits_url":"https://api.github.com/repos/dujuanxian/homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/dujuanxian/homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/dujuanxian/homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/dujuanxian/homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/dujuanxian/homework/contents/{+path}","compare_url":"https://api.github.com/repos/dujuanxian/homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dujuanxian/homework/merges","archive_url":"https://api.github.com/repos/dujuanxian/homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dujuanxian/homework/downloads","issues_url":"https://api.github.com/repos/dujuanxian/homework/issues{/number}","pulls_url":"https://api.github.com/repos/dujuanxian/homework/pulls{/number}","milestones_url":"https://api.github.com/repos/dujuanxian/homework/milestones{/number}","notifications_url":"https://api.github.com/repos/dujuanxian/homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dujuanxian/homework/labels{/name}","releases_url":"https://api.github.com/repos/dujuanxian/homework/releases{/id}","created_at":"2015-12-03T10:30:37Z","updated_at":"2015-12-03T10:30:37Z","pushed_at":"2015-12-07T05:12:52Z","git_url":"git://github.com/dujuanxian/homework.git","ssh_url":"git@github.com:dujuanxian/homework.git","clone_url":"https://github.com/dujuanxian/homework.git","svn_url":"https://github.com/dujuanxian/homework","homepage":null,"size":313,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tw-oocamp-201512:master","ref":"master","sha":"e67f865a8932ef058891a4c23faa9e5281b698a5","user":{"login":"tw-oocamp-201512","id":15956012,"avatar_url":"https://avatars.githubusercontent.com/u/15956012?v=3","gravatar_id":"","url":"https://api.github.com/users/tw-oocamp-201512","html_url":"https://github.com/tw-oocamp-201512","followers_url":"https://api.github.com/users/tw-oocamp-201512/followers","following_url":"https://api.github.com/users/tw-oocamp-201512/following{/other_user}","gists_url":"https://api.github.com/users/tw-oocamp-201512/gists{/gist_id}","starred_url":"https://api.github.com/users/tw-oocamp-201512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tw-oocamp-201512/subscriptions","organizations_url":"https://api.github.com/users/tw-oocamp-201512/orgs","repos_url":"https://api.github.com/users/tw-oocamp-201512/repos","events_url":"https://api.github.com/users/tw-oocamp-201512/events{/privacy}","received_events_url":"https://api.github.com/users/tw-oocamp-201512/received_events","type":"Organization","site_admin":false},"repo":{"id":47126503,"name":"homework","full_name":"tw-oocamp-201512/homework","owner":{"login":"tw-oocamp-201512","id":15956012,"avatar_url":"https://avatars.githubusercontent.com/u/15956012?v=3","gravatar_id":"","url":"https://api.github.com/users/tw-oocamp-201512","html_url":"https://github.com/tw-oocamp-201512","followers_url":"https://api.github.com/users/tw-oocamp-201512/followers","following_url":"https://api.github.com/users/tw-oocamp-201512/following{/other_user}","gists_url":"https://api.github.com/users/tw-oocamp-201512/gists{/gist_id}","starred_url":"https://api.github.com/users/tw-oocamp-201512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tw-oocamp-201512/subscriptions","organizations_url":"https://api.github.com/users/tw-oocamp-201512/orgs","repos_url":"https://api.github.com/users/tw-oocamp-201512/repos","events_url":"https://api.github.com/users/tw-oocamp-201512/events{/privacy}","received_events_url":"https://api.github.com/users/tw-oocamp-201512/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tw-oocamp-201512/homework","description":"每节课的作业都提交到这个仓库里","fork":false,"url":"https://api.github.com/repos/tw-oocamp-201512/homework","forks_url":"https://api.github.com/repos/tw-oocamp-201512/homework/forks","keys_url":"https://api.github.com/repos/tw-oocamp-201512/homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tw-oocamp-201512/homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tw-oocamp-201512/homework/teams","hooks_url":"https://api.github.com/repos/tw-oocamp-201512/homework/hooks","issue_events_url":"https://api.github.com/repos/tw-oocamp-201512/homework/issues/events{/number}","events_url":"https://api.github.com/repos/tw-oocamp-201512/homework/events","assignees_url":"https://api.github.com/repos/tw-oocamp-201512/homework/assignees{/user}","branches_url":"https://api.github.com/repos/tw-oocamp-201512/homework/branches{/branch}","tags_url":"https://api.github.com/repos/tw-oocamp-201512/homework/tags","blobs_url":"https://api.github.com/repos/tw-oocamp-201512/homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tw-oocamp-201512/homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tw-oocamp-201512/homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/tw-oocamp-201512/homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tw-oocamp-201512/homework/statuses/{sha}","languages_url":"https://api.github.com/repos/tw-oocamp-201512/homework/languages","stargazers_url":"https://api.github.com/repos/tw-oocamp-201512/homework/stargazers","contributors_url":"https://api.github.com/repos/tw-oocamp-201512/homework/contributors","subscribers_url":"https://api.github.com/repos/tw-oocamp-201512/homework/subscribers","subscription_url":"https://api.github.com/repos/tw-oocamp-201512/homework/subscription","commits_url":"https://api.github.com/repos/tw-oocamp-201512/homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/tw-oocamp-201512/homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/tw-oocamp-201512/homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/tw-oocamp-201512/homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/tw-oocamp-201512/homework/contents/{+path}","compare_url":"https://api.github.com/repos/tw-oocamp-201512/homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tw-oocamp-201512/homework/merges","archive_url":"https://api.github.com/repos/tw-oocamp-201512/homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tw-oocamp-201512/homework/downloads","issues_url":"https://api.github.com/repos/tw-oocamp-201512/homework/issues{/number}","pulls_url":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls{/number}","milestones_url":"https://api.github.com/repos/tw-oocamp-201512/homework/milestones{/number}","notifications_url":"https://api.github.com/repos/tw-oocamp-201512/homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tw-oocamp-201512/homework/labels{/name}","releases_url":"https://api.github.com/repos/tw-oocamp-201512/homework/releases{/id}","created_at":"2015-11-30T15:07:18Z","updated_at":"2015-12-06T22:06:59Z","pushed_at":"2015-12-08T15:16:47Z","git_url":"git://github.com/tw-oocamp-201512/homework.git","ssh_url":"git@github.com:tw-oocamp-201512/homework.git","clone_url":"https://github.com/tw-oocamp-201512/homework.git","svn_url":"https://github.com/tw-oocamp-201512/homework","homepage":null,"size":455,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":14,"forks":15,"open_issues":14,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/8"},"html":{"href":"https://github.com/tw-oocamp-201512/homework/pull/8"},"issue":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/issues/8"},"comments":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/tw-oocamp-201512/homework/statuses/09576f8d213428231cfbceaaee681c89269cfcdb"}}}}