{"action":"opened","number":2228,"pull_request":{"url":"https://api.github.com/repos/apereo/cas/pulls/2228","id":98318870,"html_url":"https://github.com/apereo/cas/pull/2228","diff_url":"https://github.com/apereo/cas/pull/2228.diff","patch_url":"https://github.com/apereo/cas/pull/2228.patch","issue_url":"https://api.github.com/repos/apereo/cas/issues/2228","number":2228,"state":"open","locked":false,"title":"Use Collections.singleton where possible","user":{"login":"DavidRG13","id":5788241,"avatar_url":"https://avatars.githubusercontent.com/u/5788241?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidRG13","html_url":"https://github.com/DavidRG13","followers_url":"https://api.github.com/users/DavidRG13/followers","following_url":"https://api.github.com/users/DavidRG13/following{/other_user}","gists_url":"https://api.github.com/users/DavidRG13/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidRG13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidRG13/subscriptions","organizations_url":"https://api.github.com/users/DavidRG13/orgs","repos_url":"https://api.github.com/users/DavidRG13/repos","events_url":"https://api.github.com/users/DavidRG13/events{/privacy}","received_events_url":"https://api.github.com/users/DavidRG13/received_events","type":"User","site_admin":false},"body":"Part of #2212\r\n\r\nReplacing:\r\n```new HashSet<>(Collections.singletonList(element));```\r\n\r\nwith:\r\n```Collection.singleton(element)```\r\n\r\nAdded rule for this","created_at":"2016-12-16T11:23:52Z","updated_at":"2016-12-16T11:23:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apereo/cas/pulls/2228/commits","review_comments_url":"https://api.github.com/repos/apereo/cas/pulls/2228/comments","review_comment_url":"https://api.github.com/repos/apereo/cas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apereo/cas/issues/2228/comments","statuses_url":"https://api.github.com/repos/apereo/cas/statuses/3fbed33a3656f11363a6bff18b7e369054919c4a","head":{"label":"William-Hill-Online:CAS-2212-012","ref":"CAS-2212-012","sha":"3fbed33a3656f11363a6bff18b7e369054919c4a","user":{"login":"William-Hill-Online","id":16120005,"avatar_url":"https://avatars.githubusercontent.com/u/16120005?v=3","gravatar_id":"","url":"https://api.github.com/users/William-Hill-Online","html_url":"https://github.com/William-Hill-Online","followers_url":"https://api.github.com/users/William-Hill-Online/followers","following_url":"https://api.github.com/users/William-Hill-Online/following{/other_user}","gists_url":"https://api.github.com/users/William-Hill-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/William-Hill-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/William-Hill-Online/subscriptions","organizations_url":"https://api.github.com/users/William-Hill-Online/orgs","repos_url":"https://api.github.com/users/William-Hill-Online/repos","events_url":"https://api.github.com/users/William-Hill-Online/events{/privacy}","received_events_url":"https://api.github.com/users/William-Hill-Online/received_events","type":"Organization","site_admin":false},"repo":{"id":71229990,"name":"cas","full_name":"William-Hill-Online/cas","owner":{"login":"William-Hill-Online","id":16120005,"avatar_url":"https://avatars.githubusercontent.com/u/16120005?v=3","gravatar_id":"","url":"https://api.github.com/users/William-Hill-Online","html_url":"https://github.com/William-Hill-Online","followers_url":"https://api.github.com/users/William-Hill-Online/followers","following_url":"https://api.github.com/users/William-Hill-Online/following{/other_user}","gists_url":"https://api.github.com/users/William-Hill-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/William-Hill-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/William-Hill-Online/subscriptions","organizations_url":"https://api.github.com/users/William-Hill-Online/orgs","repos_url":"https://api.github.com/users/William-Hill-Online/repos","events_url":"https://api.github.com/users/William-Hill-Online/events{/privacy}","received_events_url":"https://api.github.com/users/William-Hill-Online/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/William-Hill-Online/cas","description":"Apereo CAS - Enterprise Single Sign On for all","fork":true,"url":"https://api.github.com/repos/William-Hill-Online/cas","forks_url":"https://api.github.com/repos/William-Hill-Online/cas/forks","keys_url":"https://api.github.com/repos/William-Hill-Online/cas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/William-Hill-Online/cas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/William-Hill-Online/cas/teams","hooks_url":"https://api.github.com/repos/William-Hill-Online/cas/hooks","issue_events_url":"https://api.github.com/repos/William-Hill-Online/cas/issues/events{/number}","events_url":"https://api.github.com/repos/William-Hill-Online/cas/events","assignees_url":"https://api.github.com/repos/William-Hill-Online/cas/assignees{/user}","branches_url":"https://api.github.com/repos/William-Hill-Online/cas/branches{/branch}","tags_url":"https://api.github.com/repos/William-Hill-Online/cas/tags","blobs_url":"https://api.github.com/repos/William-Hill-Online/cas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/William-Hill-Online/cas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/William-Hill-Online/cas/git/refs{/sha}","trees_url":"https://api.github.com/repos/William-Hill-Online/cas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/William-Hill-Online/cas/statuses/{sha}","languages_url":"https://api.github.com/repos/William-Hill-Online/cas/languages","stargazers_url":"https://api.github.com/repos/William-Hill-Online/cas/stargazers","contributors_url":"https://api.github.com/repos/William-Hill-Online/cas/contributors","subscribers_url":"https://api.github.com/repos/William-Hill-Online/cas/subscribers","subscription_url":"https://api.github.com/repos/William-Hill-Online/cas/subscription","commits_url":"https://api.github.com/repos/William-Hill-Online/cas/commits{/sha}","git_commits_url":"https://api.github.com/repos/William-Hill-Online/cas/git/commits{/sha}","comments_url":"https://api.github.com/repos/William-Hill-Online/cas/comments{/number}","issue_comment_url":"https://api.github.com/repos/William-Hill-Online/cas/issues/comments{/number}","contents_url":"https://api.github.com/repos/William-Hill-Online/cas/contents/{+path}","compare_url":"https://api.github.com/repos/William-Hill-Online/cas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/William-Hill-Online/cas/merges","archive_url":"https://api.github.com/repos/William-Hill-Online/cas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/William-Hill-Online/cas/downloads","issues_url":"https://api.github.com/repos/William-Hill-Online/cas/issues{/number}","pulls_url":"https://api.github.com/repos/William-Hill-Online/cas/pulls{/number}","milestones_url":"https://api.github.com/repos/William-Hill-Online/cas/milestones{/number}","notifications_url":"https://api.github.com/repos/William-Hill-Online/cas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/William-Hill-Online/cas/labels{/name}","releases_url":"https://api.github.com/repos/William-Hill-Online/cas/releases{/id}","deployments_url":"https://api.github.com/repos/William-Hill-Online/cas/deployments","created_at":"2016-10-18T09:10:14Z","updated_at":"2016-11-22T16:29:51Z","pushed_at":"2016-12-16T11:23:23Z","git_url":"git://github.com/William-Hill-Online/cas.git","ssh_url":"git@github.com:William-Hill-Online/cas.git","clone_url":"https://github.com/William-Hill-Online/cas.git","svn_url":"https://github.com/William-Hill-Online/cas","homepage":"https://apereo.github.io/cas/","size":1262894,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"apereo:master","ref":"master","sha":"f0f3b5ecdefa5d7dde281dee6a5788064adfc229","user":{"login":"apereo","id":4679233,"avatar_url":"https://avatars.githubusercontent.com/u/4679233?v=3","gravatar_id":"","url":"https://api.github.com/users/apereo","html_url":"https://github.com/apereo","followers_url":"https://api.github.com/users/apereo/followers","following_url":"https://api.github.com/users/apereo/following{/other_user}","gists_url":"https://api.github.com/users/apereo/gists{/gist_id}","starred_url":"https://api.github.com/users/apereo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apereo/subscriptions","organizations_url":"https://api.github.com/users/apereo/orgs","repos_url":"https://api.github.com/users/apereo/repos","events_url":"https://api.github.com/users/apereo/events{/privacy}","received_events_url":"https://api.github.com/users/apereo/received_events","type":"Organization","site_admin":false},"repo":{"id":2352744,"name":"cas","full_name":"apereo/cas","owner":{"login":"apereo","id":4679233,"avatar_url":"https://avatars.githubusercontent.com/u/4679233?v=3","gravatar_id":"","url":"https://api.github.com/users/apereo","html_url":"https://github.com/apereo","followers_url":"https://api.github.com/users/apereo/followers","following_url":"https://api.github.com/users/apereo/following{/other_user}","gists_url":"https://api.github.com/users/apereo/gists{/gist_id}","starred_url":"https://api.github.com/users/apereo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apereo/subscriptions","organizations_url":"https://api.github.com/users/apereo/orgs","repos_url":"https://api.github.com/users/apereo/repos","events_url":"https://api.github.com/users/apereo/events{/privacy}","received_events_url":"https://api.github.com/users/apereo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apereo/cas","description":"Apereo CAS - Enterprise Single Sign On for all","fork":false,"url":"https://api.github.com/repos/apereo/cas","forks_url":"https://api.github.com/repos/apereo/cas/forks","keys_url":"https://api.github.com/repos/apereo/cas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apereo/cas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apereo/cas/teams","hooks_url":"https://api.github.com/repos/apereo/cas/hooks","issue_events_url":"https://api.github.com/repos/apereo/cas/issues/events{/number}","events_url":"https://api.github.com/repos/apereo/cas/events","assignees_url":"https://api.github.com/repos/apereo/cas/assignees{/user}","branches_url":"https://api.github.com/repos/apereo/cas/branches{/branch}","tags_url":"https://api.github.com/repos/apereo/cas/tags","blobs_url":"https://api.github.com/repos/apereo/cas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apereo/cas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apereo/cas/git/refs{/sha}","trees_url":"https://api.github.com/repos/apereo/cas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apereo/cas/statuses/{sha}","languages_url":"https://api.github.com/repos/apereo/cas/languages","stargazers_url":"https://api.github.com/repos/apereo/cas/stargazers","contributors_url":"https://api.github.com/repos/apereo/cas/contributors","subscribers_url":"https://api.github.com/repos/apereo/cas/subscribers","subscription_url":"https://api.github.com/repos/apereo/cas/subscription","commits_url":"https://api.github.com/repos/apereo/cas/commits{/sha}","git_commits_url":"https://api.github.com/repos/apereo/cas/git/commits{/sha}","comments_url":"https://api.github.com/repos/apereo/cas/comments{/number}","issue_comment_url":"https://api.github.com/repos/apereo/cas/issues/comments{/number}","contents_url":"https://api.github.com/repos/apereo/cas/contents/{+path}","compare_url":"https://api.github.com/repos/apereo/cas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apereo/cas/merges","archive_url":"https://api.github.com/repos/apereo/cas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apereo/cas/downloads","issues_url":"https://api.github.com/repos/apereo/cas/issues{/number}","pulls_url":"https://api.github.com/repos/apereo/cas/pulls{/number}","milestones_url":"https://api.github.com/repos/apereo/cas/milestones{/number}","notifications_url":"https://api.github.com/repos/apereo/cas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apereo/cas/labels{/name}","releases_url":"https://api.github.com/repos/apereo/cas/releases{/id}","deployments_url":"https://api.github.com/repos/apereo/cas/deployments","created_at":"2011-09-09T01:36:42Z","updated_at":"2016-12-16T08:23:09Z","pushed_at":"2016-12-16T11:23:52Z","git_url":"git://github.com/apereo/cas.git","ssh_url":"git@github.com:apereo/cas.git","clone_url":"https://github.com/apereo/cas.git","svn_url":"https://github.com/apereo/cas","homepage":"https://apereo.github.io/cas/","size":1290943,"stargazers_count":2056,"watchers_count":2056,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1300,"mirror_url":null,"open_issues_count":48,"forks":1300,"open_issues":48,"watchers":2056,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apereo/cas/pulls/2228"},"html":{"href":"https://github.com/apereo/cas/pull/2228"},"issue":{"href":"https://api.github.com/repos/apereo/cas/issues/2228"},"comments":{"href":"https://api.github.com/repos/apereo/cas/issues/2228/comments"},"review_comments":{"href":"https://api.github.com/repos/apereo/cas/pulls/2228/comments"},"review_comment":{"href":"https://api.github.com/repos/apereo/cas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apereo/cas/pulls/2228/commits"},"statuses":{"href":"https://api.github.com/repos/apereo/cas/statuses/3fbed33a3656f11363a6bff18b7e369054919c4a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":8,"deletions":4,"changed_files":3}}
{"actor":{"display_login":"DavidRG13"}}