{"action":"created","comment":{"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments/77328205","id":77328205,"diff_hunk":"@@ -25,7 +32,11 @@ public Address(String address, boolean isPrivate) throws IllegalValueException {\n         if (!isValidAddress(address)) {\n             throw new IllegalValueException(MESSAGE_ADDRESS_CONSTRAINTS);\n         }\n-        this.value = address;\n+        String[] newAddress = address.split(\", \");\n+        this.block = new Block(newAddress[0]);\n+        this.street = new Street(newAddress[1]);\n+        this.unit = new Unit(newAddress[2]);\n+        this.postalCode = new PostalCode(Integer.parseInt(newAddress[3]));","path":"src/seedu/addressbook/data/person/Address.java","position":40,"original_position":40,"commit_id":"4d5607a9fc5b357e59fbe9aaa9273fecbf696c04","original_commit_id":"4d5607a9fc5b357e59fbe9aaa9273fecbf696c04","user":{"login":"jeffryhartanto","id":7631199,"avatar_url":"https://avatars.githubusercontent.com/u/7631199?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffryhartanto","html_url":"https://github.com/jeffryhartanto","followers_url":"https://api.github.com/users/jeffryhartanto/followers","following_url":"https://api.github.com/users/jeffryhartanto/following{/other_user}","gists_url":"https://api.github.com/users/jeffryhartanto/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffryhartanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffryhartanto/subscriptions","organizations_url":"https://api.github.com/users/jeffryhartanto/orgs","repos_url":"https://api.github.com/users/jeffryhartanto/repos","events_url":"https://api.github.com/users/jeffryhartanto/events{/privacy}","received_events_url":"https://api.github.com/users/jeffryhartanto/received_events","type":"User","site_admin":false},"body":"Don't use magic number for the `newAddress`","created_at":"2016-09-02T10:50:39Z","updated_at":"2016-09-02T10:50:39Z","html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/607#discussion_r77328205","pull_request_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/607","_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments/77328205"},"html":{"href":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/607#discussion_r77328205"},"pull_request":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/607"}}},"pull_request":{"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/607","id":83644292,"html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/607","diff_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/607.diff","patch_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/607.patch","issue_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/607","number":607,"state":"open","locked":false,"title":"[T3A3][F09-A2]GuoShiMin","user":{"login":"shimin2016","id":21213906,"avatar_url":"https://avatars.githubusercontent.com/u/21213906?v=3","gravatar_id":"","url":"https://api.github.com/users/shimin2016","html_url":"https://github.com/shimin2016","followers_url":"https://api.github.com/users/shimin2016/followers","following_url":"https://api.github.com/users/shimin2016/following{/other_user}","gists_url":"https://api.github.com/users/shimin2016/gists{/gist_id}","starred_url":"https://api.github.com/users/shimin2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimin2016/subscriptions","organizations_url":"https://api.github.com/users/shimin2016/orgs","repos_url":"https://api.github.com/users/shimin2016/repos","events_url":"https://api.github.com/users/shimin2016/events{/privacy}","received_events_url":"https://api.github.com/users/shimin2016/received_events","type":"User","site_admin":false},"body":"…mand and format int command and test class","created_at":"2016-09-01T14:34:24Z","updated_at":"2016-09-02T10:50:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fbc4b733c21f8525a11bb8443c754bae28507704","assignee":{"login":"jeffryhartanto","id":7631199,"avatar_url":"https://avatars.githubusercontent.com/u/7631199?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffryhartanto","html_url":"https://github.com/jeffryhartanto","followers_url":"https://api.github.com/users/jeffryhartanto/followers","following_url":"https://api.github.com/users/jeffryhartanto/following{/other_user}","gists_url":"https://api.github.com/users/jeffryhartanto/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffryhartanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffryhartanto/subscriptions","organizations_url":"https://api.github.com/users/jeffryhartanto/orgs","repos_url":"https://api.github.com/users/jeffryhartanto/repos","events_url":"https://api.github.com/users/jeffryhartanto/events{/privacy}","received_events_url":"https://api.github.com/users/jeffryhartanto/received_events","type":"User","site_admin":false},"assignees":[{"login":"jeffryhartanto","id":7631199,"avatar_url":"https://avatars.githubusercontent.com/u/7631199?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffryhartanto","html_url":"https://github.com/jeffryhartanto","followers_url":"https://api.github.com/users/jeffryhartanto/followers","following_url":"https://api.github.com/users/jeffryhartanto/following{/other_user}","gists_url":"https://api.github.com/users/jeffryhartanto/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffryhartanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffryhartanto/subscriptions","organizations_url":"https://api.github.com/users/jeffryhartanto/orgs","repos_url":"https://api.github.com/users/jeffryhartanto/repos","events_url":"https://api.github.com/users/jeffryhartanto/events{/privacy}","received_events_url":"https://api.github.com/users/jeffryhartanto/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/607/commits","review_comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/607/comments","review_comment_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/607/comments","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/4d5607a9fc5b357e59fbe9aaa9273fecbf696c04","head":{"label":"shimin2016:T3A3","ref":"T3A3","sha":"4d5607a9fc5b357e59fbe9aaa9273fecbf696c04","user":{"login":"shimin2016","id":21213906,"avatar_url":"https://avatars.githubusercontent.com/u/21213906?v=3","gravatar_id":"","url":"https://api.github.com/users/shimin2016","html_url":"https://github.com/shimin2016","followers_url":"https://api.github.com/users/shimin2016/followers","following_url":"https://api.github.com/users/shimin2016/following{/other_user}","gists_url":"https://api.github.com/users/shimin2016/gists{/gist_id}","starred_url":"https://api.github.com/users/shimin2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimin2016/subscriptions","organizations_url":"https://api.github.com/users/shimin2016/orgs","repos_url":"https://api.github.com/users/shimin2016/repos","events_url":"https://api.github.com/users/shimin2016/events{/privacy}","received_events_url":"https://api.github.com/users/shimin2016/received_events","type":"User","site_admin":false},"repo":{"id":66914556,"name":"addressbook-level2","full_name":"shimin2016/addressbook-level2","owner":{"login":"shimin2016","id":21213906,"avatar_url":"https://avatars.githubusercontent.com/u/21213906?v=3","gravatar_id":"","url":"https://api.github.com/users/shimin2016","html_url":"https://github.com/shimin2016","followers_url":"https://api.github.com/users/shimin2016/followers","following_url":"https://api.github.com/users/shimin2016/following{/other_user}","gists_url":"https://api.github.com/users/shimin2016/gists{/gist_id}","starred_url":"https://api.github.com/users/shimin2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimin2016/subscriptions","organizations_url":"https://api.github.com/users/shimin2016/orgs","repos_url":"https://api.github.com/users/shimin2016/repos","events_url":"https://api.github.com/users/shimin2016/events{/privacy}","received_events_url":"https://api.github.com/users/shimin2016/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shimin2016/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/shimin2016/addressbook-level2","forks_url":"https://api.github.com/repos/shimin2016/addressbook-level2/forks","keys_url":"https://api.github.com/repos/shimin2016/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shimin2016/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shimin2016/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/shimin2016/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/shimin2016/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/shimin2016/addressbook-level2/events","assignees_url":"https://api.github.com/repos/shimin2016/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/shimin2016/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/shimin2016/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/shimin2016/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shimin2016/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shimin2016/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/shimin2016/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shimin2016/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/shimin2016/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/shimin2016/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/shimin2016/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/shimin2016/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/shimin2016/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/shimin2016/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/shimin2016/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/shimin2016/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/shimin2016/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/shimin2016/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/shimin2016/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shimin2016/addressbook-level2/merges","archive_url":"https://api.github.com/repos/shimin2016/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shimin2016/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/shimin2016/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/shimin2016/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/shimin2016/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/shimin2016/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shimin2016/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/shimin2016/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/shimin2016/addressbook-level2/deployments","created_at":"2016-08-30T06:49:26Z","updated_at":"2016-08-30T06:49:27Z","pushed_at":"2016-09-01T16:01:22Z","git_url":"git://github.com/shimin2016/addressbook-level2.git","ssh_url":"git@github.com:shimin2016/addressbook-level2.git","clone_url":"https://github.com/shimin2016/addressbook-level2.git","svn_url":"https://github.com/shimin2016/addressbook-level2","homepage":null,"size":3002,"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":"nus-cs2103-AY1617S1:master","ref":"master","sha":"19f22e05d9fa4c555d2526f2ed3e70fb336eb43a","user":{"login":"nus-cs2103-AY1617S1","id":20475842,"avatar_url":"https://avatars.githubusercontent.com/u/20475842?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1617S1","html_url":"https://github.com/nus-cs2103-AY1617S1","followers_url":"https://api.github.com/users/nus-cs2103-AY1617S1/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1617S1/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1617S1/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1617S1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1617S1/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1617S1/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1617S1/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/received_events","type":"Organization","site_admin":false},"repo":{"id":66551047,"name":"addressbook-level2","full_name":"nus-cs2103-AY1617S1/addressbook-level2","owner":{"login":"nus-cs2103-AY1617S1","id":20475842,"avatar_url":"https://avatars.githubusercontent.com/u/20475842?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1617S1","html_url":"https://github.com/nus-cs2103-AY1617S1","followers_url":"https://api.github.com/users/nus-cs2103-AY1617S1/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1617S1/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1617S1/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1617S1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1617S1/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1617S1/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1617S1/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2","forks_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/forks","keys_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/events","assignees_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/merges","archive_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/deployments","created_at":"2016-08-25T11:09:03Z","updated_at":"2016-08-31T14:24:36Z","pushed_at":"2016-09-02T10:38:34Z","git_url":"git://github.com/nus-cs2103-AY1617S1/addressbook-level2.git","ssh_url":"git@github.com:nus-cs2103-AY1617S1/addressbook-level2.git","clone_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2.git","svn_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2","homepage":null,"size":3960,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":247,"mirror_url":null,"open_issues_count":399,"forks":247,"open_issues":399,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/607"},"html":{"href":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/607"},"issue":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/607"},"comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/607/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/607/comments"},"review_comment":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/607/commits"},"statuses":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/4d5607a9fc5b357e59fbe9aaa9273fecbf696c04"}}}}
{"actor":{"display_login":"jeffryhartanto"}}