{"action":"created","comment":{"url":"https://api.github.com/repos/cluePrints/code-review/pulls/comments/28307239","id":28307239,"diff_hunk":"@@ -0,0 +1,36 @@\n+package gojava31.ua.goit;\n+\n+import java.util.Collections;\n+import java.util.List;\n+import java.util.concurrent.CopyOnWriteArrayList;\n+\n+public final class Category {\n+    private String name;\n+    private List<Project> projects;\n+\n+    public Category() {\n+    }\n+\n+    public Category(String name) {\n+        this.name = name;\n+    }\n+\n+    public Category(String name, List<Project> projects) {\n+        this.name = name;\n+        this.projects = projects;\n+    }\n+\n+    public String getName() {\n+        return name;\n+    }\n+\n+    public List<Project> getProjects() {\n+        List<Project> clone = new CopyOnWriteArrayList<Project>();\n+        Collections.copy(clone, projects);","path":"src/main/java/gojava31.ua.goit/Category.java","position":29,"original_position":29,"commit_id":"ad9e3c10ace444ab7d394c6f33a7bca4501e06b3","original_commit_id":"ad9e3c10ace444ab7d394c6f33a7bca4501e06b3","user":{"login":"cluePrints","id":432728,"avatar_url":"https://avatars.githubusercontent.com/u/432728?v=3","gravatar_id":"","url":"https://api.github.com/users/cluePrints","html_url":"https://github.com/cluePrints","followers_url":"https://api.github.com/users/cluePrints/followers","following_url":"https://api.github.com/users/cluePrints/following{/other_user}","gists_url":"https://api.github.com/users/cluePrints/gists{/gist_id}","starred_url":"https://api.github.com/users/cluePrints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluePrints/subscriptions","organizations_url":"https://api.github.com/users/cluePrints/orgs","repos_url":"https://api.github.com/users/cluePrints/repos","events_url":"https://api.github.com/users/cluePrints/events{/privacy}","received_events_url":"https://api.github.com/users/cluePrints/received_events","type":"User","site_admin":false},"body":"you can just pass the projects as a constructor arg to `CopyOnWriteArrayList`, all (or most) collections accept first arg being collection to copy from","created_at":"2015-04-14T08:04:49Z","updated_at":"2015-04-14T08:04:49Z","html_url":"https://github.com/cluePrints/code-review/pull/1#discussion_r28307239","pull_request_url":"https://api.github.com/repos/cluePrints/code-review/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/comments/28307239"},"html":{"href":"https://github.com/cluePrints/code-review/pull/1#discussion_r28307239"},"pull_request":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/cluePrints/code-review/pulls/1","id":33124234,"html_url":"https://github.com/cluePrints/code-review/pull/1","diff_url":"https://github.com/cluePrints/code-review/pull/1.diff","patch_url":"https://github.com/cluePrints/code-review/pull/1.patch","issue_url":"https://api.github.com/repos/cluePrints/code-review/issues/1","number":1,"state":"open","locked":false,"title":"for rew","user":{"login":"roznalex","id":8004948,"avatar_url":"https://avatars.githubusercontent.com/u/8004948?v=3","gravatar_id":"","url":"https://api.github.com/users/roznalex","html_url":"https://github.com/roznalex","followers_url":"https://api.github.com/users/roznalex/followers","following_url":"https://api.github.com/users/roznalex/following{/other_user}","gists_url":"https://api.github.com/users/roznalex/gists{/gist_id}","starred_url":"https://api.github.com/users/roznalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roznalex/subscriptions","organizations_url":"https://api.github.com/users/roznalex/orgs","repos_url":"https://api.github.com/users/roznalex/repos","events_url":"https://api.github.com/users/roznalex/events{/privacy}","received_events_url":"https://api.github.com/users/roznalex/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-12T18:39:34Z","updated_at":"2015-04-14T08:04:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccccab3584e1e8b88e38256eb2ef80b0e6dc3ebf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cluePrints/code-review/pulls/1/commits","review_comments_url":"https://api.github.com/repos/cluePrints/code-review/pulls/1/comments","review_comment_url":"https://api.github.com/repos/cluePrints/code-review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cluePrints/code-review/issues/1/comments","statuses_url":"https://api.github.com/repos/cluePrints/code-review/statuses/ad9e3c10ace444ab7d394c6f33a7bca4501e06b3","head":{"label":"roznalex:master","ref":"master","sha":"ad9e3c10ace444ab7d394c6f33a7bca4501e06b3","user":{"login":"roznalex","id":8004948,"avatar_url":"https://avatars.githubusercontent.com/u/8004948?v=3","gravatar_id":"","url":"https://api.github.com/users/roznalex","html_url":"https://github.com/roznalex","followers_url":"https://api.github.com/users/roznalex/followers","following_url":"https://api.github.com/users/roznalex/following{/other_user}","gists_url":"https://api.github.com/users/roznalex/gists{/gist_id}","starred_url":"https://api.github.com/users/roznalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roznalex/subscriptions","organizations_url":"https://api.github.com/users/roznalex/orgs","repos_url":"https://api.github.com/users/roznalex/repos","events_url":"https://api.github.com/users/roznalex/events{/privacy}","received_events_url":"https://api.github.com/users/roznalex/received_events","type":"User","site_admin":false},"repo":{"id":33823360,"name":"code-review","full_name":"roznalex/code-review","owner":{"login":"roznalex","id":8004948,"avatar_url":"https://avatars.githubusercontent.com/u/8004948?v=3","gravatar_id":"","url":"https://api.github.com/users/roznalex","html_url":"https://github.com/roznalex","followers_url":"https://api.github.com/users/roznalex/followers","following_url":"https://api.github.com/users/roznalex/following{/other_user}","gists_url":"https://api.github.com/users/roznalex/gists{/gist_id}","starred_url":"https://api.github.com/users/roznalex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roznalex/subscriptions","organizations_url":"https://api.github.com/users/roznalex/orgs","repos_url":"https://api.github.com/users/roznalex/repos","events_url":"https://api.github.com/users/roznalex/events{/privacy}","received_events_url":"https://api.github.com/users/roznalex/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roznalex/code-review","description":"Submit a PR against this repo to get me to comment your code","fork":true,"url":"https://api.github.com/repos/roznalex/code-review","forks_url":"https://api.github.com/repos/roznalex/code-review/forks","keys_url":"https://api.github.com/repos/roznalex/code-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roznalex/code-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roznalex/code-review/teams","hooks_url":"https://api.github.com/repos/roznalex/code-review/hooks","issue_events_url":"https://api.github.com/repos/roznalex/code-review/issues/events{/number}","events_url":"https://api.github.com/repos/roznalex/code-review/events","assignees_url":"https://api.github.com/repos/roznalex/code-review/assignees{/user}","branches_url":"https://api.github.com/repos/roznalex/code-review/branches{/branch}","tags_url":"https://api.github.com/repos/roznalex/code-review/tags","blobs_url":"https://api.github.com/repos/roznalex/code-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roznalex/code-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roznalex/code-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/roznalex/code-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roznalex/code-review/statuses/{sha}","languages_url":"https://api.github.com/repos/roznalex/code-review/languages","stargazers_url":"https://api.github.com/repos/roznalex/code-review/stargazers","contributors_url":"https://api.github.com/repos/roznalex/code-review/contributors","subscribers_url":"https://api.github.com/repos/roznalex/code-review/subscribers","subscription_url":"https://api.github.com/repos/roznalex/code-review/subscription","commits_url":"https://api.github.com/repos/roznalex/code-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/roznalex/code-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/roznalex/code-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/roznalex/code-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/roznalex/code-review/contents/{+path}","compare_url":"https://api.github.com/repos/roznalex/code-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roznalex/code-review/merges","archive_url":"https://api.github.com/repos/roznalex/code-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roznalex/code-review/downloads","issues_url":"https://api.github.com/repos/roznalex/code-review/issues{/number}","pulls_url":"https://api.github.com/repos/roznalex/code-review/pulls{/number}","milestones_url":"https://api.github.com/repos/roznalex/code-review/milestones{/number}","notifications_url":"https://api.github.com/repos/roznalex/code-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roznalex/code-review/labels{/name}","releases_url":"https://api.github.com/repos/roznalex/code-review/releases{/id}","created_at":"2015-04-12T16:00:38Z","updated_at":"2015-04-13T22:55:18Z","pushed_at":"2015-04-13T22:55:17Z","git_url":"git://github.com/roznalex/code-review.git","ssh_url":"git@github.com:roznalex/code-review.git","clone_url":"https://github.com/roznalex/code-review.git","svn_url":"https://github.com/roznalex/code-review","homepage":null,"size":82,"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":"cluePrints:master","ref":"master","sha":"5bc66eadf172fed6825e5c1faf87ca61f5818ca5","user":{"login":"cluePrints","id":432728,"avatar_url":"https://avatars.githubusercontent.com/u/432728?v=3","gravatar_id":"","url":"https://api.github.com/users/cluePrints","html_url":"https://github.com/cluePrints","followers_url":"https://api.github.com/users/cluePrints/followers","following_url":"https://api.github.com/users/cluePrints/following{/other_user}","gists_url":"https://api.github.com/users/cluePrints/gists{/gist_id}","starred_url":"https://api.github.com/users/cluePrints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluePrints/subscriptions","organizations_url":"https://api.github.com/users/cluePrints/orgs","repos_url":"https://api.github.com/users/cluePrints/repos","events_url":"https://api.github.com/users/cluePrints/events{/privacy}","received_events_url":"https://api.github.com/users/cluePrints/received_events","type":"User","site_admin":false},"repo":{"id":22610972,"name":"code-review","full_name":"cluePrints/code-review","owner":{"login":"cluePrints","id":432728,"avatar_url":"https://avatars.githubusercontent.com/u/432728?v=3","gravatar_id":"","url":"https://api.github.com/users/cluePrints","html_url":"https://github.com/cluePrints","followers_url":"https://api.github.com/users/cluePrints/followers","following_url":"https://api.github.com/users/cluePrints/following{/other_user}","gists_url":"https://api.github.com/users/cluePrints/gists{/gist_id}","starred_url":"https://api.github.com/users/cluePrints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluePrints/subscriptions","organizations_url":"https://api.github.com/users/cluePrints/orgs","repos_url":"https://api.github.com/users/cluePrints/repos","events_url":"https://api.github.com/users/cluePrints/events{/privacy}","received_events_url":"https://api.github.com/users/cluePrints/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cluePrints/code-review","description":"Submit a PR against this repo to get me to comment your code","fork":false,"url":"https://api.github.com/repos/cluePrints/code-review","forks_url":"https://api.github.com/repos/cluePrints/code-review/forks","keys_url":"https://api.github.com/repos/cluePrints/code-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cluePrints/code-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cluePrints/code-review/teams","hooks_url":"https://api.github.com/repos/cluePrints/code-review/hooks","issue_events_url":"https://api.github.com/repos/cluePrints/code-review/issues/events{/number}","events_url":"https://api.github.com/repos/cluePrints/code-review/events","assignees_url":"https://api.github.com/repos/cluePrints/code-review/assignees{/user}","branches_url":"https://api.github.com/repos/cluePrints/code-review/branches{/branch}","tags_url":"https://api.github.com/repos/cluePrints/code-review/tags","blobs_url":"https://api.github.com/repos/cluePrints/code-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cluePrints/code-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cluePrints/code-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/cluePrints/code-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cluePrints/code-review/statuses/{sha}","languages_url":"https://api.github.com/repos/cluePrints/code-review/languages","stargazers_url":"https://api.github.com/repos/cluePrints/code-review/stargazers","contributors_url":"https://api.github.com/repos/cluePrints/code-review/contributors","subscribers_url":"https://api.github.com/repos/cluePrints/code-review/subscribers","subscription_url":"https://api.github.com/repos/cluePrints/code-review/subscription","commits_url":"https://api.github.com/repos/cluePrints/code-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/cluePrints/code-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/cluePrints/code-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/cluePrints/code-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/cluePrints/code-review/contents/{+path}","compare_url":"https://api.github.com/repos/cluePrints/code-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cluePrints/code-review/merges","archive_url":"https://api.github.com/repos/cluePrints/code-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cluePrints/code-review/downloads","issues_url":"https://api.github.com/repos/cluePrints/code-review/issues{/number}","pulls_url":"https://api.github.com/repos/cluePrints/code-review/pulls{/number}","milestones_url":"https://api.github.com/repos/cluePrints/code-review/milestones{/number}","notifications_url":"https://api.github.com/repos/cluePrints/code-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cluePrints/code-review/labels{/name}","releases_url":"https://api.github.com/repos/cluePrints/code-review/releases{/id}","created_at":"2014-08-04T16:15:36Z","updated_at":"2014-08-04T16:15:36Z","pushed_at":"2015-04-13T22:55:17Z","git_url":"git://github.com/cluePrints/code-review.git","ssh_url":"git@github.com:cluePrints/code-review.git","clone_url":"https://github.com/cluePrints/code-review.git","svn_url":"https://github.com/cluePrints/code-review","homepage":null,"size":104,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/1"},"html":{"href":"https://github.com/cluePrints/code-review/pull/1"},"issue":{"href":"https://api.github.com/repos/cluePrints/code-review/issues/1"},"comments":{"href":"https://api.github.com/repos/cluePrints/code-review/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/cluePrints/code-review/statuses/ad9e3c10ace444ab7d394c6f33a7bca4501e06b3"}}}}