{"action":"created","comment":{"url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/comments/230594367","pull_request_review_id":171368204,"id":230594367,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDU5NDM2Nw==","diff_hunk":"@@ -0,0 +1,47 @@\n+package exercice4;\n+\n+import java.util.ArrayList;\n+import java.util.Date;\n+\n+public class Gestion {\n+\tprivate final ArrayList<Reservation> reservation;\n+\t\n+\tpublic Gestion() {\n+\t\treservation = new ArrayList<>();\n+\t}\n+\t\n+\tpublic void ajouterReservation(Reservation chamb) {\n+\t\tint idx = reservation.indexOf(chamb);","path":"Test/Exam1/src/exercice4/Gestion.java","position":14,"original_position":14,"commit_id":"003ac63b5561a28b4ff05f8b98be6591236f3e54","original_commit_id":"003ac63b5561a28b4ff05f8b98be6591236f3e54","user":{"login":"jpcosal","id":42937033,"node_id":"MDQ6VXNlcjQyOTM3MDMz","avatar_url":"https://avatars2.githubusercontent.com/u/42937033?v=4","gravatar_id":"","url":"https://api.github.com/users/jpcosal","html_url":"https://github.com/jpcosal","followers_url":"https://api.github.com/users/jpcosal/followers","following_url":"https://api.github.com/users/jpcosal/following{/other_user}","gists_url":"https://api.github.com/users/jpcosal/gists{/gist_id}","starred_url":"https://api.github.com/users/jpcosal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpcosal/subscriptions","organizations_url":"https://api.github.com/users/jpcosal/orgs","repos_url":"https://api.github.com/users/jpcosal/repos","events_url":"https://api.github.com/users/jpcosal/events{/privacy}","received_events_url":"https://api.github.com/users/jpcosal/received_events","type":"User","site_admin":false},"body":"Hmmm... This does not work unfortunately.\r\n~~~java\r\nDate d = new Date(/*some_date*/)\r\nReservation r1 = new Reservation(\"201\",d);\r\nReservation r2 = new Reservation(\"201\",d);\r\nboolean b = r1 == r2 // b is false since objects' adresses are compared\r\n~~~","created_at":"2018-11-04T16:03:36Z","updated_at":"2018-11-04T16:06:22Z","html_url":"https://github.com/CNAMPRO/18_stmn_java/pull/21#discussion_r230594367","pull_request_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/21","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/comments/230594367"},"html":{"href":"https://github.com/CNAMPRO/18_stmn_java/pull/21#discussion_r230594367"},"pull_request":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/21","id":217721728,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NzIxNzI4","html_url":"https://github.com/CNAMPRO/18_stmn_java/pull/21","diff_url":"https://github.com/CNAMPRO/18_stmn_java/pull/21.diff","patch_url":"https://github.com/CNAMPRO/18_stmn_java/pull/21.patch","issue_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues/21","number":21,"state":"open","locked":false,"title":"Exo Exam","user":{"login":"jpcosal","id":42937033,"node_id":"MDQ6VXNlcjQyOTM3MDMz","avatar_url":"https://avatars2.githubusercontent.com/u/42937033?v=4","gravatar_id":"","url":"https://api.github.com/users/jpcosal","html_url":"https://github.com/jpcosal","followers_url":"https://api.github.com/users/jpcosal/followers","following_url":"https://api.github.com/users/jpcosal/following{/other_user}","gists_url":"https://api.github.com/users/jpcosal/gists{/gist_id}","starred_url":"https://api.github.com/users/jpcosal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpcosal/subscriptions","organizations_url":"https://api.github.com/users/jpcosal/orgs","repos_url":"https://api.github.com/users/jpcosal/repos","events_url":"https://api.github.com/users/jpcosal/events{/privacy}","received_events_url":"https://api.github.com/users/jpcosal/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-24T16:52:36Z","updated_at":"2018-11-04T16:06:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51e22494e258b827aec9a67f877f61685f2f41d1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/21/commits","review_comments_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/21/comments","review_comment_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues/21/comments","statuses_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/statuses/003ac63b5561a28b4ff05f8b98be6591236f3e54","head":{"label":"CNAMPRO:lucas","ref":"lucas","sha":"003ac63b5561a28b4ff05f8b98be6591236f3e54","user":{"login":"CNAMPRO","id":34444480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NDQ0NDgw","avatar_url":"https://avatars0.githubusercontent.com/u/34444480?v=4","gravatar_id":"","url":"https://api.github.com/users/CNAMPRO","html_url":"https://github.com/CNAMPRO","followers_url":"https://api.github.com/users/CNAMPRO/followers","following_url":"https://api.github.com/users/CNAMPRO/following{/other_user}","gists_url":"https://api.github.com/users/CNAMPRO/gists{/gist_id}","starred_url":"https://api.github.com/users/CNAMPRO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CNAMPRO/subscriptions","organizations_url":"https://api.github.com/users/CNAMPRO/orgs","repos_url":"https://api.github.com/users/CNAMPRO/repos","events_url":"https://api.github.com/users/CNAMPRO/events{/privacy}","received_events_url":"https://api.github.com/users/CNAMPRO/received_events","type":"Organization","site_admin":false},"repo":{"id":147201412,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyMDE0MTI=","name":"18_stmn_java","full_name":"CNAMPRO/18_stmn_java","private":false,"owner":{"login":"CNAMPRO","id":34444480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NDQ0NDgw","avatar_url":"https://avatars0.githubusercontent.com/u/34444480?v=4","gravatar_id":"","url":"https://api.github.com/users/CNAMPRO","html_url":"https://github.com/CNAMPRO","followers_url":"https://api.github.com/users/CNAMPRO/followers","following_url":"https://api.github.com/users/CNAMPRO/following{/other_user}","gists_url":"https://api.github.com/users/CNAMPRO/gists{/gist_id}","starred_url":"https://api.github.com/users/CNAMPRO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CNAMPRO/subscriptions","organizations_url":"https://api.github.com/users/CNAMPRO/orgs","repos_url":"https://api.github.com/users/CNAMPRO/repos","events_url":"https://api.github.com/users/CNAMPRO/events{/privacy}","received_events_url":"https://api.github.com/users/CNAMPRO/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CNAMPRO/18_stmn_java","description":"CNAM:STMN","fork":false,"url":"https://api.github.com/repos/CNAMPRO/18_stmn_java","forks_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/forks","keys_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/teams","hooks_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/hooks","issue_events_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues/events{/number}","events_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/events","assignees_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/assignees{/user}","branches_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/branches{/branch}","tags_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/tags","blobs_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/refs{/sha}","trees_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/statuses/{sha}","languages_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/languages","stargazers_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/stargazers","contributors_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/contributors","subscribers_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/subscribers","subscription_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/subscription","commits_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/commits{/sha}","git_commits_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/commits{/sha}","comments_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/comments{/number}","issue_comment_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues/comments{/number}","contents_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/contents/{+path}","compare_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/merges","archive_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/downloads","issues_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues{/number}","pulls_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls{/number}","milestones_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/milestones{/number}","notifications_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/labels{/name}","releases_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/releases{/id}","deployments_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/deployments","created_at":"2018-09-03T12:23:46Z","updated_at":"2018-09-24T11:33:20Z","pushed_at":"2018-09-24T16:52:58Z","git_url":"git://github.com/CNAMPRO/18_stmn_java.git","ssh_url":"git@github.com:CNAMPRO/18_stmn_java.git","clone_url":"https://github.com/CNAMPRO/18_stmn_java.git","svn_url":"https://github.com/CNAMPRO/18_stmn_java","homepage":"","size":28961,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":3,"default_branch":"master"}},"base":{"label":"CNAMPRO:master","ref":"master","sha":"6650e459286e1dbef270134faa34c6c107522d39","user":{"login":"CNAMPRO","id":34444480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NDQ0NDgw","avatar_url":"https://avatars0.githubusercontent.com/u/34444480?v=4","gravatar_id":"","url":"https://api.github.com/users/CNAMPRO","html_url":"https://github.com/CNAMPRO","followers_url":"https://api.github.com/users/CNAMPRO/followers","following_url":"https://api.github.com/users/CNAMPRO/following{/other_user}","gists_url":"https://api.github.com/users/CNAMPRO/gists{/gist_id}","starred_url":"https://api.github.com/users/CNAMPRO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CNAMPRO/subscriptions","organizations_url":"https://api.github.com/users/CNAMPRO/orgs","repos_url":"https://api.github.com/users/CNAMPRO/repos","events_url":"https://api.github.com/users/CNAMPRO/events{/privacy}","received_events_url":"https://api.github.com/users/CNAMPRO/received_events","type":"Organization","site_admin":false},"repo":{"id":147201412,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyMDE0MTI=","name":"18_stmn_java","full_name":"CNAMPRO/18_stmn_java","private":false,"owner":{"login":"CNAMPRO","id":34444480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NDQ0NDgw","avatar_url":"https://avatars0.githubusercontent.com/u/34444480?v=4","gravatar_id":"","url":"https://api.github.com/users/CNAMPRO","html_url":"https://github.com/CNAMPRO","followers_url":"https://api.github.com/users/CNAMPRO/followers","following_url":"https://api.github.com/users/CNAMPRO/following{/other_user}","gists_url":"https://api.github.com/users/CNAMPRO/gists{/gist_id}","starred_url":"https://api.github.com/users/CNAMPRO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CNAMPRO/subscriptions","organizations_url":"https://api.github.com/users/CNAMPRO/orgs","repos_url":"https://api.github.com/users/CNAMPRO/repos","events_url":"https://api.github.com/users/CNAMPRO/events{/privacy}","received_events_url":"https://api.github.com/users/CNAMPRO/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CNAMPRO/18_stmn_java","description":"CNAM:STMN","fork":false,"url":"https://api.github.com/repos/CNAMPRO/18_stmn_java","forks_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/forks","keys_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/teams","hooks_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/hooks","issue_events_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues/events{/number}","events_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/events","assignees_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/assignees{/user}","branches_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/branches{/branch}","tags_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/tags","blobs_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/refs{/sha}","trees_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/statuses/{sha}","languages_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/languages","stargazers_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/stargazers","contributors_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/contributors","subscribers_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/subscribers","subscription_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/subscription","commits_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/commits{/sha}","git_commits_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/git/commits{/sha}","comments_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/comments{/number}","issue_comment_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues/comments{/number}","contents_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/contents/{+path}","compare_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/merges","archive_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/downloads","issues_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues{/number}","pulls_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls{/number}","milestones_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/milestones{/number}","notifications_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/labels{/name}","releases_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/releases{/id}","deployments_url":"https://api.github.com/repos/CNAMPRO/18_stmn_java/deployments","created_at":"2018-09-03T12:23:46Z","updated_at":"2018-09-24T11:33:20Z","pushed_at":"2018-09-24T16:52:58Z","git_url":"git://github.com/CNAMPRO/18_stmn_java.git","ssh_url":"git@github.com:CNAMPRO/18_stmn_java.git","clone_url":"https://github.com/CNAMPRO/18_stmn_java.git","svn_url":"https://github.com/CNAMPRO/18_stmn_java","homepage":"","size":28961,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/21"},"html":{"href":"https://github.com/CNAMPRO/18_stmn_java/pull/21"},"issue":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues/21"},"comments":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/CNAMPRO/18_stmn_java/statuses/003ac63b5561a28b4ff05f8b98be6591236f3e54"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jpcosal"}}