{"action":"created","comment":{"url":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/comments/83236107","pull_request_review_id":4092214,"id":83236107,"diff_hunk":"@@ -1,31 +1,50 @@\n package io.toast.tk.core.rest;\r\n \r\n+import java.io.IOException;\r\n import java.lang.reflect.Type;\r\n+import java.util.ArrayList;\r\n import java.util.Arrays;\r\n import java.util.Collection;\r\n+import java.util.List;\r\n \r\n import javax.naming.AuthenticationException;\r\n import javax.ws.rs.core.MediaType;\r\n \r\n import org.apache.commons.lang3.StringEscapeUtils;\r\n+import org.apache.http.HttpEntity;\r\n+import org.apache.http.HttpHeaders;\r\n+import org.apache.http.NameValuePair;\r\n+import org.apache.http.client.HttpClient;\r\n+import org.apache.http.client.entity.UrlEncodedFormEntity;\r\n+import org.apache.http.client.methods.CloseableHttpResponse;\r\n+import org.apache.http.client.methods.HttpGet;\r\n+import org.apache.http.client.methods.HttpPost;\r\n+import org.apache.http.entity.ByteArrayEntity;\r","path":"toast-tk-rest-utils/src/main/java/io/toast/tk/core/rest/RestUtils.java","position":22,"original_position":22,"commit_id":"573a0fee0c58ce6ab6da4729e6198ca4a5357585","original_commit_id":"573a0fee0c58ce6ab6da4729e6198ca4a5357585","user":{"login":"Noki87","id":1101638,"avatar_url":"https://avatars.githubusercontent.com/u/1101638?v=3","gravatar_id":"","url":"https://api.github.com/users/Noki87","html_url":"https://github.com/Noki87","followers_url":"https://api.github.com/users/Noki87/followers","following_url":"https://api.github.com/users/Noki87/following{/other_user}","gists_url":"https://api.github.com/users/Noki87/gists{/gist_id}","starred_url":"https://api.github.com/users/Noki87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noki87/subscriptions","organizations_url":"https://api.github.com/users/Noki87/orgs","repos_url":"https://api.github.com/users/Noki87/repos","events_url":"https://api.github.com/users/Noki87/events{/privacy}","received_events_url":"https://api.github.com/users/Noki87/received_events","type":"User","site_admin":false},"body":"![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) Remove this unused import 'org.apache.http.entity.ByteArrayEntity'. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonar.talanlabs.com/coding_rules#rule_key=squid%3AUselessImportCheck)\n","created_at":"2016-10-13T14:58:19Z","updated_at":"2016-10-13T14:58:19Z","html_url":"https://github.com/toast-tk/toast-tk-engine/pull/121#discussion_r83236107","pull_request_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/comments/83236107"},"html":{"href":"https://github.com/toast-tk/toast-tk-engine/pull/121#discussion_r83236107"},"pull_request":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/121","id":89218678,"html_url":"https://github.com/toast-tk/toast-tk-engine/pull/121","diff_url":"https://github.com/toast-tk/toast-tk-engine/pull/121.diff","patch_url":"https://github.com/toast-tk/toast-tk-engine/pull/121.patch","issue_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues/121","number":121,"state":"open","locked":false,"title":"79 closeablehttpclients","user":{"login":"skokaina","id":2756985,"avatar_url":"https://avatars.githubusercontent.com/u/2756985?v=3","gravatar_id":"","url":"https://api.github.com/users/skokaina","html_url":"https://github.com/skokaina","followers_url":"https://api.github.com/users/skokaina/followers","following_url":"https://api.github.com/users/skokaina/following{/other_user}","gists_url":"https://api.github.com/users/skokaina/gists{/gist_id}","starred_url":"https://api.github.com/users/skokaina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skokaina/subscriptions","organizations_url":"https://api.github.com/users/skokaina/orgs","repos_url":"https://api.github.com/users/skokaina/repos","events_url":"https://api.github.com/users/skokaina/events{/privacy}","received_events_url":"https://api.github.com/users/skokaina/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-13T14:53:39Z","updated_at":"2016-10-13T14:58:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe554913848f386a4d5d95ca947711b58ad4d09f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/121/commits","review_comments_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/121/comments","review_comment_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues/121/comments","statuses_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/statuses/573a0fee0c58ce6ab6da4729e6198ca4a5357585","head":{"label":"toast-tk:79-closeablehttpclients","ref":"79-closeablehttpclients","sha":"573a0fee0c58ce6ab6da4729e6198ca4a5357585","user":{"login":"toast-tk","id":14966230,"avatar_url":"https://avatars.githubusercontent.com/u/14966230?v=3","gravatar_id":"","url":"https://api.github.com/users/toast-tk","html_url":"https://github.com/toast-tk","followers_url":"https://api.github.com/users/toast-tk/followers","following_url":"https://api.github.com/users/toast-tk/following{/other_user}","gists_url":"https://api.github.com/users/toast-tk/gists{/gist_id}","starred_url":"https://api.github.com/users/toast-tk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toast-tk/subscriptions","organizations_url":"https://api.github.com/users/toast-tk/orgs","repos_url":"https://api.github.com/users/toast-tk/repos","events_url":"https://api.github.com/users/toast-tk/events{/privacy}","received_events_url":"https://api.github.com/users/toast-tk/received_events","type":"Organization","site_admin":false},"repo":{"id":45826774,"name":"toast-tk-engine","full_name":"toast-tk/toast-tk-engine","owner":{"login":"toast-tk","id":14966230,"avatar_url":"https://avatars.githubusercontent.com/u/14966230?v=3","gravatar_id":"","url":"https://api.github.com/users/toast-tk","html_url":"https://github.com/toast-tk","followers_url":"https://api.github.com/users/toast-tk/followers","following_url":"https://api.github.com/users/toast-tk/following{/other_user}","gists_url":"https://api.github.com/users/toast-tk/gists{/gist_id}","starred_url":"https://api.github.com/users/toast-tk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toast-tk/subscriptions","organizations_url":"https://api.github.com/users/toast-tk/orgs","repos_url":"https://api.github.com/users/toast-tk/repos","events_url":"https://api.github.com/users/toast-tk/events{/privacy}","received_events_url":"https://api.github.com/users/toast-tk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/toast-tk/toast-tk-engine","description":"Toast TK Engine Framework","fork":false,"url":"https://api.github.com/repos/toast-tk/toast-tk-engine","forks_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/forks","keys_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/teams","hooks_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/hooks","issue_events_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues/events{/number}","events_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/events","assignees_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/assignees{/user}","branches_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/branches{/branch}","tags_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/tags","blobs_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/languages","stargazers_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/stargazers","contributors_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/contributors","subscribers_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/subscribers","subscription_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/subscription","commits_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/contents/{+path}","compare_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/merges","archive_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/downloads","issues_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues{/number}","pulls_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/labels{/name}","releases_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/releases{/id}","deployments_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/deployments","created_at":"2015-11-09T09:02:18Z","updated_at":"2016-09-16T14:52:30Z","pushed_at":"2016-10-13T14:53:39Z","git_url":"git://github.com/toast-tk/toast-tk-engine.git","ssh_url":"git@github.com:toast-tk/toast-tk-engine.git","clone_url":"https://github.com/toast-tk/toast-tk-engine.git","svn_url":"https://github.com/toast-tk/toast-tk-engine","homepage":"http://toast-tk.io","size":2875,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":53,"forks":5,"open_issues":53,"watchers":7,"default_branch":"snapshot"}},"base":{"label":"toast-tk:snapshot","ref":"snapshot","sha":"12193809f31a6866f8b570c1696ff3c06229f223","user":{"login":"toast-tk","id":14966230,"avatar_url":"https://avatars.githubusercontent.com/u/14966230?v=3","gravatar_id":"","url":"https://api.github.com/users/toast-tk","html_url":"https://github.com/toast-tk","followers_url":"https://api.github.com/users/toast-tk/followers","following_url":"https://api.github.com/users/toast-tk/following{/other_user}","gists_url":"https://api.github.com/users/toast-tk/gists{/gist_id}","starred_url":"https://api.github.com/users/toast-tk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toast-tk/subscriptions","organizations_url":"https://api.github.com/users/toast-tk/orgs","repos_url":"https://api.github.com/users/toast-tk/repos","events_url":"https://api.github.com/users/toast-tk/events{/privacy}","received_events_url":"https://api.github.com/users/toast-tk/received_events","type":"Organization","site_admin":false},"repo":{"id":45826774,"name":"toast-tk-engine","full_name":"toast-tk/toast-tk-engine","owner":{"login":"toast-tk","id":14966230,"avatar_url":"https://avatars.githubusercontent.com/u/14966230?v=3","gravatar_id":"","url":"https://api.github.com/users/toast-tk","html_url":"https://github.com/toast-tk","followers_url":"https://api.github.com/users/toast-tk/followers","following_url":"https://api.github.com/users/toast-tk/following{/other_user}","gists_url":"https://api.github.com/users/toast-tk/gists{/gist_id}","starred_url":"https://api.github.com/users/toast-tk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toast-tk/subscriptions","organizations_url":"https://api.github.com/users/toast-tk/orgs","repos_url":"https://api.github.com/users/toast-tk/repos","events_url":"https://api.github.com/users/toast-tk/events{/privacy}","received_events_url":"https://api.github.com/users/toast-tk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/toast-tk/toast-tk-engine","description":"Toast TK Engine Framework","fork":false,"url":"https://api.github.com/repos/toast-tk/toast-tk-engine","forks_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/forks","keys_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/teams","hooks_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/hooks","issue_events_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues/events{/number}","events_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/events","assignees_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/assignees{/user}","branches_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/branches{/branch}","tags_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/tags","blobs_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/languages","stargazers_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/stargazers","contributors_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/contributors","subscribers_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/subscribers","subscription_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/subscription","commits_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/contents/{+path}","compare_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/merges","archive_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/downloads","issues_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues{/number}","pulls_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/labels{/name}","releases_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/releases{/id}","deployments_url":"https://api.github.com/repos/toast-tk/toast-tk-engine/deployments","created_at":"2015-11-09T09:02:18Z","updated_at":"2016-09-16T14:52:30Z","pushed_at":"2016-10-13T14:53:39Z","git_url":"git://github.com/toast-tk/toast-tk-engine.git","ssh_url":"git@github.com:toast-tk/toast-tk-engine.git","clone_url":"https://github.com/toast-tk/toast-tk-engine.git","svn_url":"https://github.com/toast-tk/toast-tk-engine","homepage":"http://toast-tk.io","size":2875,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":53,"forks":5,"open_issues":53,"watchers":7,"default_branch":"snapshot"}},"_links":{"self":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/121"},"html":{"href":"https://github.com/toast-tk/toast-tk-engine/pull/121"},"issue":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues/121"},"comments":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/toast-tk/toast-tk-engine/statuses/573a0fee0c58ce6ab6da4729e6198ca4a5357585"}}}}
{"actor":{"display_login":"Noki87"}}