{"action":"created","comment":{"url":"https://api.github.com/repos/yosukenn/java_lessons/pulls/comments/242390392","pull_request_review_id":185886964,"id":242390392,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjM5MDM5Mg==","diff_hunk":"@@ -0,0 +1,27 @@\n+package lesson19;\n+\n+// 19 - 1\n+class CountUpThread extends Thread {\n+\tpublic void run() {\n+\t\t// 「0 ~ 50の整数を順に表示する」[\n+\t\tsynchronized(this) {","path":"chapter_19/src/lesson19/Main.java","position":7,"original_position":7,"commit_id":"6b5b9bb810291435c8b0ba31d3aeee592eea2c76","original_commit_id":"6b5b9bb810291435c8b0ba31d3aeee592eea2c76","user":{"login":"m-kamo","id":40748791,"node_id":"MDQ6VXNlcjQwNzQ4Nzkx","avatar_url":"https://avatars1.githubusercontent.com/u/40748791?v=4","gravatar_id":"","url":"https://api.github.com/users/m-kamo","html_url":"https://github.com/m-kamo","followers_url":"https://api.github.com/users/m-kamo/followers","following_url":"https://api.github.com/users/m-kamo/following{/other_user}","gists_url":"https://api.github.com/users/m-kamo/gists{/gist_id}","starred_url":"https://api.github.com/users/m-kamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-kamo/subscriptions","organizations_url":"https://api.github.com/users/m-kamo/orgs","repos_url":"https://api.github.com/users/m-kamo/repos","events_url":"https://api.github.com/users/m-kamo/events{/privacy}","received_events_url":"https://api.github.com/users/m-kamo/received_events","type":"User","site_admin":false},"body":"なくすと完璧ではなくなりますか？","created_at":"2018-12-18T02:41:23Z","updated_at":"2018-12-18T02:41:41Z","html_url":"https://github.com/yosukenn/java_lessons/pull/20#discussion_r242390392","pull_request_url":"https://api.github.com/repos/yosukenn/java_lessons/pulls/20","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/yosukenn/java_lessons/pulls/comments/242390392"},"html":{"href":"https://github.com/yosukenn/java_lessons/pull/20#discussion_r242390392"},"pull_request":{"href":"https://api.github.com/repos/yosukenn/java_lessons/pulls/20"}},"in_reply_to_id":242106808},"pull_request":{"url":"https://api.github.com/repos/yosukenn/java_lessons/pulls/20","id":239101881,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5MTAxODgx","html_url":"https://github.com/yosukenn/java_lessons/pull/20","diff_url":"https://github.com/yosukenn/java_lessons/pull/20.diff","patch_url":"https://github.com/yosukenn/java_lessons/pull/20.patch","issue_url":"https://api.github.com/repos/yosukenn/java_lessons/issues/20","number":20,"state":"open","locked":false,"title":"【19章】スレッドによる並列処理","user":{"login":"yosukenn","id":40386128,"node_id":"MDQ6VXNlcjQwMzg2MTI4","avatar_url":"https://avatars1.githubusercontent.com/u/40386128?v=4","gravatar_id":"","url":"https://api.github.com/users/yosukenn","html_url":"https://github.com/yosukenn","followers_url":"https://api.github.com/users/yosukenn/followers","following_url":"https://api.github.com/users/yosukenn/following{/other_user}","gists_url":"https://api.github.com/users/yosukenn/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukenn/subscriptions","organizations_url":"https://api.github.com/users/yosukenn/orgs","repos_url":"https://api.github.com/users/yosukenn/repos","events_url":"https://api.github.com/users/yosukenn/events{/privacy}","received_events_url":"https://api.github.com/users/yosukenn/received_events","type":"User","site_admin":false},"body":"# 19-1\r\n「0 ~ 50 の整数を順に表示する」という動作をする CountUpThread を作成してください。\r\nさらに、 Main クラスの main メソッド内から CountUpThread によるスレッドを３つ生成し、それを実行してください。\r\n\r\n# 19-2\r\n次のクラスは複数のスレッドから同時に利用されるとデータが破壊される恐れがあります。このコードをスレッドセーフなものに修正してください。\r\n```\r\npublic class Counter {\r\n\tprivate long count = 0;\r\n\tpublic void add(long i) {\r\n\t\tSystem.out.println(\"足し算します\");\r\n\t\tthis.count += i;\r\n\t}\r\n\tpublic void mul(long i) {\r\n\t\tSystem.out.println(\"掛け算します\");\r\n\t\tthis.count *= i;\r\n\t}\r\n}\r\n``` ","created_at":"2018-12-17T10:54:57Z","updated_at":"2018-12-18T02:41:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3bbb8773978578d7cacf957f7868c7547ef17ff","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yosukenn/java_lessons/pulls/20/commits","review_comments_url":"https://api.github.com/repos/yosukenn/java_lessons/pulls/20/comments","review_comment_url":"https://api.github.com/repos/yosukenn/java_lessons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yosukenn/java_lessons/issues/20/comments","statuses_url":"https://api.github.com/repos/yosukenn/java_lessons/statuses/6b5b9bb810291435c8b0ba31d3aeee592eea2c76","head":{"label":"yosukenn:Chapter19","ref":"Chapter19","sha":"6b5b9bb810291435c8b0ba31d3aeee592eea2c76","user":{"login":"yosukenn","id":40386128,"node_id":"MDQ6VXNlcjQwMzg2MTI4","avatar_url":"https://avatars1.githubusercontent.com/u/40386128?v=4","gravatar_id":"","url":"https://api.github.com/users/yosukenn","html_url":"https://github.com/yosukenn","followers_url":"https://api.github.com/users/yosukenn/followers","following_url":"https://api.github.com/users/yosukenn/following{/other_user}","gists_url":"https://api.github.com/users/yosukenn/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukenn/subscriptions","organizations_url":"https://api.github.com/users/yosukenn/orgs","repos_url":"https://api.github.com/users/yosukenn/repos","events_url":"https://api.github.com/users/yosukenn/events{/privacy}","received_events_url":"https://api.github.com/users/yosukenn/received_events","type":"User","site_admin":false},"repo":{"id":160144357,"node_id":"MDEwOlJlcG9zaXRvcnkxNjAxNDQzNTc=","name":"java_lessons","full_name":"yosukenn/java_lessons","private":false,"owner":{"login":"yosukenn","id":40386128,"node_id":"MDQ6VXNlcjQwMzg2MTI4","avatar_url":"https://avatars1.githubusercontent.com/u/40386128?v=4","gravatar_id":"","url":"https://api.github.com/users/yosukenn","html_url":"https://github.com/yosukenn","followers_url":"https://api.github.com/users/yosukenn/followers","following_url":"https://api.github.com/users/yosukenn/following{/other_user}","gists_url":"https://api.github.com/users/yosukenn/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukenn/subscriptions","organizations_url":"https://api.github.com/users/yosukenn/orgs","repos_url":"https://api.github.com/users/yosukenn/repos","events_url":"https://api.github.com/users/yosukenn/events{/privacy}","received_events_url":"https://api.github.com/users/yosukenn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yosukenn/java_lessons","description":null,"fork":false,"url":"https://api.github.com/repos/yosukenn/java_lessons","forks_url":"https://api.github.com/repos/yosukenn/java_lessons/forks","keys_url":"https://api.github.com/repos/yosukenn/java_lessons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yosukenn/java_lessons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yosukenn/java_lessons/teams","hooks_url":"https://api.github.com/repos/yosukenn/java_lessons/hooks","issue_events_url":"https://api.github.com/repos/yosukenn/java_lessons/issues/events{/number}","events_url":"https://api.github.com/repos/yosukenn/java_lessons/events","assignees_url":"https://api.github.com/repos/yosukenn/java_lessons/assignees{/user}","branches_url":"https://api.github.com/repos/yosukenn/java_lessons/branches{/branch}","tags_url":"https://api.github.com/repos/yosukenn/java_lessons/tags","blobs_url":"https://api.github.com/repos/yosukenn/java_lessons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yosukenn/java_lessons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yosukenn/java_lessons/git/refs{/sha}","trees_url":"https://api.github.com/repos/yosukenn/java_lessons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yosukenn/java_lessons/statuses/{sha}","languages_url":"https://api.github.com/repos/yosukenn/java_lessons/languages","stargazers_url":"https://api.github.com/repos/yosukenn/java_lessons/stargazers","contributors_url":"https://api.github.com/repos/yosukenn/java_lessons/contributors","subscribers_url":"https://api.github.com/repos/yosukenn/java_lessons/subscribers","subscription_url":"https://api.github.com/repos/yosukenn/java_lessons/subscription","commits_url":"https://api.github.com/repos/yosukenn/java_lessons/commits{/sha}","git_commits_url":"https://api.github.com/repos/yosukenn/java_lessons/git/commits{/sha}","comments_url":"https://api.github.com/repos/yosukenn/java_lessons/comments{/number}","issue_comment_url":"https://api.github.com/repos/yosukenn/java_lessons/issues/comments{/number}","contents_url":"https://api.github.com/repos/yosukenn/java_lessons/contents/{+path}","compare_url":"https://api.github.com/repos/yosukenn/java_lessons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yosukenn/java_lessons/merges","archive_url":"https://api.github.com/repos/yosukenn/java_lessons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yosukenn/java_lessons/downloads","issues_url":"https://api.github.com/repos/yosukenn/java_lessons/issues{/number}","pulls_url":"https://api.github.com/repos/yosukenn/java_lessons/pulls{/number}","milestones_url":"https://api.github.com/repos/yosukenn/java_lessons/milestones{/number}","notifications_url":"https://api.github.com/repos/yosukenn/java_lessons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yosukenn/java_lessons/labels{/name}","releases_url":"https://api.github.com/repos/yosukenn/java_lessons/releases{/id}","deployments_url":"https://api.github.com/repos/yosukenn/java_lessons/deployments","created_at":"2018-12-03T06:40:46Z","updated_at":"2018-12-17T06:21:07Z","pushed_at":"2018-12-17T10:54:58Z","git_url":"git://github.com/yosukenn/java_lessons.git","ssh_url":"git@github.com:yosukenn/java_lessons.git","clone_url":"https://github.com/yosukenn/java_lessons.git","svn_url":"https://github.com/yosukenn/java_lessons","homepage":null,"size":1846,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"yosukenn:master","ref":"master","sha":"863913369b3a9ac51d3630a32ebf646a85bcb8d3","user":{"login":"yosukenn","id":40386128,"node_id":"MDQ6VXNlcjQwMzg2MTI4","avatar_url":"https://avatars1.githubusercontent.com/u/40386128?v=4","gravatar_id":"","url":"https://api.github.com/users/yosukenn","html_url":"https://github.com/yosukenn","followers_url":"https://api.github.com/users/yosukenn/followers","following_url":"https://api.github.com/users/yosukenn/following{/other_user}","gists_url":"https://api.github.com/users/yosukenn/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukenn/subscriptions","organizations_url":"https://api.github.com/users/yosukenn/orgs","repos_url":"https://api.github.com/users/yosukenn/repos","events_url":"https://api.github.com/users/yosukenn/events{/privacy}","received_events_url":"https://api.github.com/users/yosukenn/received_events","type":"User","site_admin":false},"repo":{"id":160144357,"node_id":"MDEwOlJlcG9zaXRvcnkxNjAxNDQzNTc=","name":"java_lessons","full_name":"yosukenn/java_lessons","private":false,"owner":{"login":"yosukenn","id":40386128,"node_id":"MDQ6VXNlcjQwMzg2MTI4","avatar_url":"https://avatars1.githubusercontent.com/u/40386128?v=4","gravatar_id":"","url":"https://api.github.com/users/yosukenn","html_url":"https://github.com/yosukenn","followers_url":"https://api.github.com/users/yosukenn/followers","following_url":"https://api.github.com/users/yosukenn/following{/other_user}","gists_url":"https://api.github.com/users/yosukenn/gists{/gist_id}","starred_url":"https://api.github.com/users/yosukenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosukenn/subscriptions","organizations_url":"https://api.github.com/users/yosukenn/orgs","repos_url":"https://api.github.com/users/yosukenn/repos","events_url":"https://api.github.com/users/yosukenn/events{/privacy}","received_events_url":"https://api.github.com/users/yosukenn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/yosukenn/java_lessons","description":null,"fork":false,"url":"https://api.github.com/repos/yosukenn/java_lessons","forks_url":"https://api.github.com/repos/yosukenn/java_lessons/forks","keys_url":"https://api.github.com/repos/yosukenn/java_lessons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yosukenn/java_lessons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yosukenn/java_lessons/teams","hooks_url":"https://api.github.com/repos/yosukenn/java_lessons/hooks","issue_events_url":"https://api.github.com/repos/yosukenn/java_lessons/issues/events{/number}","events_url":"https://api.github.com/repos/yosukenn/java_lessons/events","assignees_url":"https://api.github.com/repos/yosukenn/java_lessons/assignees{/user}","branches_url":"https://api.github.com/repos/yosukenn/java_lessons/branches{/branch}","tags_url":"https://api.github.com/repos/yosukenn/java_lessons/tags","blobs_url":"https://api.github.com/repos/yosukenn/java_lessons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yosukenn/java_lessons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yosukenn/java_lessons/git/refs{/sha}","trees_url":"https://api.github.com/repos/yosukenn/java_lessons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yosukenn/java_lessons/statuses/{sha}","languages_url":"https://api.github.com/repos/yosukenn/java_lessons/languages","stargazers_url":"https://api.github.com/repos/yosukenn/java_lessons/stargazers","contributors_url":"https://api.github.com/repos/yosukenn/java_lessons/contributors","subscribers_url":"https://api.github.com/repos/yosukenn/java_lessons/subscribers","subscription_url":"https://api.github.com/repos/yosukenn/java_lessons/subscription","commits_url":"https://api.github.com/repos/yosukenn/java_lessons/commits{/sha}","git_commits_url":"https://api.github.com/repos/yosukenn/java_lessons/git/commits{/sha}","comments_url":"https://api.github.com/repos/yosukenn/java_lessons/comments{/number}","issue_comment_url":"https://api.github.com/repos/yosukenn/java_lessons/issues/comments{/number}","contents_url":"https://api.github.com/repos/yosukenn/java_lessons/contents/{+path}","compare_url":"https://api.github.com/repos/yosukenn/java_lessons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yosukenn/java_lessons/merges","archive_url":"https://api.github.com/repos/yosukenn/java_lessons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yosukenn/java_lessons/downloads","issues_url":"https://api.github.com/repos/yosukenn/java_lessons/issues{/number}","pulls_url":"https://api.github.com/repos/yosukenn/java_lessons/pulls{/number}","milestones_url":"https://api.github.com/repos/yosukenn/java_lessons/milestones{/number}","notifications_url":"https://api.github.com/repos/yosukenn/java_lessons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yosukenn/java_lessons/labels{/name}","releases_url":"https://api.github.com/repos/yosukenn/java_lessons/releases{/id}","deployments_url":"https://api.github.com/repos/yosukenn/java_lessons/deployments","created_at":"2018-12-03T06:40:46Z","updated_at":"2018-12-17T06:21:07Z","pushed_at":"2018-12-17T10:54:58Z","git_url":"git://github.com/yosukenn/java_lessons.git","ssh_url":"git@github.com:yosukenn/java_lessons.git","clone_url":"https://github.com/yosukenn/java_lessons.git","svn_url":"https://github.com/yosukenn/java_lessons","homepage":null,"size":1846,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yosukenn/java_lessons/pulls/20"},"html":{"href":"https://github.com/yosukenn/java_lessons/pull/20"},"issue":{"href":"https://api.github.com/repos/yosukenn/java_lessons/issues/20"},"comments":{"href":"https://api.github.com/repos/yosukenn/java_lessons/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/yosukenn/java_lessons/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/yosukenn/java_lessons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yosukenn/java_lessons/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/yosukenn/java_lessons/statuses/6b5b9bb810291435c8b0ba31d3aeee592eea2c76"}},"author_association":"OWNER"}}
{"actor":{"display_login":"m-kamo"}}