{"action":"created","comment":{"url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/comments/59414726","id":59414726,"diff_hunk":"@@ -20,189 +20,219 @@\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n-*/\n+ */\n package org.jenkinsci.plugins.badge;\n \n import hudson.model.BallColor;\n-\n-import java.io.File;\n import java.io.IOException;\n import java.io.InputStream;\n import java.util.HashMap;\n import java.net.MalformedURLException;\n import java.net.URL;\n \n import jenkins.model.Jenkins;\n-\n-import org.apache.commons.io.FileUtils;\n import org.apache.commons.io.IOUtils;\n-\n+/**\n+ *\n+ * @author dkersch\n+ */\n public class ImageResolver {\n-\n+    /**\n+     *\n+     */\n     private final HashMap<String, StatusImage[]> styles;\n+    /**\n+     *\n+     */\n     private final StatusImage[] defaultStyle;\n-    public static final String COVERAGE_BASE_URL = \"https://img.shields.io/badge/coverage\";\n+    /**\n+     *\n+     */\n     public static final String RED = \"#cc0000\";\n+    /**\n+     *\n+     */\n     public static final String YELLOW = \"#b2b200\";\n+    /**\n+     *\n+     */\n     public static final String GREEN = \"#008000\";\n+    /**","path":"src/main/java/org/jenkinsci/plugins/badge/ImageResolver.java","position":49,"original_position":49,"commit_id":"fa17e8648fae4dced3e402de74d0296ca52d0b5e","original_commit_id":"fa17e8648fae4dced3e402de74d0296ca52d0b5e","user":{"login":"sputnikci","id":15047461,"avatar_url":"https://avatars.githubusercontent.com/u/15047461?v=3","gravatar_id":"","url":"https://api.github.com/users/sputnikci","html_url":"https://github.com/sputnikci","followers_url":"https://api.github.com/users/sputnikci/followers","following_url":"https://api.github.com/users/sputnikci/following{/other_user}","gists_url":"https://api.github.com/users/sputnikci/gists{/gist_id}","starred_url":"https://api.github.com/users/sputnikci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sputnikci/subscriptions","organizations_url":"https://api.github.com/users/sputnikci/orgs","repos_url":"https://api.github.com/users/sputnikci/repos","events_url":"https://api.github.com/users/sputnikci/events{/privacy}","received_events_url":"https://api.github.com/users/sputnikci/received_events","type":"User","site_admin":false},"body":"[Checkstyle] WARNING: First sentence of Javadoc is incomplete (period is missing) or not present.","created_at":"2016-04-12T17:14:23Z","updated_at":"2016-04-12T17:14:23Z","html_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin/pull/19#discussion_r59414726","pull_request_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/comments/59414726"},"html":{"href":"https://github.com/SxMShaDoW/embeddable-badges-plugin/pull/19#discussion_r59414726"},"pull_request":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/19","id":66193723,"html_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin/pull/19","diff_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin/pull/19.diff","patch_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin/pull/19.patch","issue_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues/19","number":19,"state":"open","locked":false,"title":"added javadocs and checkstyle changes","user":{"login":"SxMShaDoW","id":9122189,"avatar_url":"https://avatars.githubusercontent.com/u/9122189?v=3","gravatar_id":"","url":"https://api.github.com/users/SxMShaDoW","html_url":"https://github.com/SxMShaDoW","followers_url":"https://api.github.com/users/SxMShaDoW/followers","following_url":"https://api.github.com/users/SxMShaDoW/following{/other_user}","gists_url":"https://api.github.com/users/SxMShaDoW/gists{/gist_id}","starred_url":"https://api.github.com/users/SxMShaDoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SxMShaDoW/subscriptions","organizations_url":"https://api.github.com/users/SxMShaDoW/orgs","repos_url":"https://api.github.com/users/SxMShaDoW/repos","events_url":"https://api.github.com/users/SxMShaDoW/events{/privacy}","received_events_url":"https://api.github.com/users/SxMShaDoW/received_events","type":"User","site_admin":false},"body":"stubbed out potential unit tests and potential javadocs as well","created_at":"2016-04-12T17:09:11Z","updated_at":"2016-04-12T17:14:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b0f869a0f23df90574ea2b439fad5d2461dce38","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/19/commits","review_comments_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/19/comments","review_comment_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues/19/comments","statuses_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/statuses/fa17e8648fae4dced3e402de74d0296ca52d0b5e","head":{"label":"SxMShaDoW:dorian","ref":"dorian","sha":"fa17e8648fae4dced3e402de74d0296ca52d0b5e","user":{"login":"SxMShaDoW","id":9122189,"avatar_url":"https://avatars.githubusercontent.com/u/9122189?v=3","gravatar_id":"","url":"https://api.github.com/users/SxMShaDoW","html_url":"https://github.com/SxMShaDoW","followers_url":"https://api.github.com/users/SxMShaDoW/followers","following_url":"https://api.github.com/users/SxMShaDoW/following{/other_user}","gists_url":"https://api.github.com/users/SxMShaDoW/gists{/gist_id}","starred_url":"https://api.github.com/users/SxMShaDoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SxMShaDoW/subscriptions","organizations_url":"https://api.github.com/users/SxMShaDoW/orgs","repos_url":"https://api.github.com/users/SxMShaDoW/repos","events_url":"https://api.github.com/users/SxMShaDoW/events{/privacy}","received_events_url":"https://api.github.com/users/SxMShaDoW/received_events","type":"User","site_admin":false},"repo":{"id":55563314,"name":"embeddable-badges-plugin","full_name":"SxMShaDoW/embeddable-badges-plugin","owner":{"login":"SxMShaDoW","id":9122189,"avatar_url":"https://avatars.githubusercontent.com/u/9122189?v=3","gravatar_id":"","url":"https://api.github.com/users/SxMShaDoW","html_url":"https://github.com/SxMShaDoW","followers_url":"https://api.github.com/users/SxMShaDoW/followers","following_url":"https://api.github.com/users/SxMShaDoW/following{/other_user}","gists_url":"https://api.github.com/users/SxMShaDoW/gists{/gist_id}","starred_url":"https://api.github.com/users/SxMShaDoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SxMShaDoW/subscriptions","organizations_url":"https://api.github.com/users/SxMShaDoW/orgs","repos_url":"https://api.github.com/users/SxMShaDoW/repos","events_url":"https://api.github.com/users/SxMShaDoW/events{/privacy}","received_events_url":"https://api.github.com/users/SxMShaDoW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin","description":"Jenkins plugin for embedded badges","fork":false,"url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin","forks_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/forks","keys_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/teams","hooks_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/hooks","issue_events_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/events","assignees_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/tags","blobs_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/languages","stargazers_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/stargazers","contributors_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/contributors","subscribers_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/subscribers","subscription_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/subscription","commits_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/merges","archive_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/downloads","issues_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/labels{/name}","releases_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/deployments","created_at":"2016-04-06T00:28:30Z","updated_at":"2016-04-06T00:29:01Z","pushed_at":"2016-04-12T17:09:11Z","git_url":"git://github.com/SxMShaDoW/embeddable-badges-plugin.git","ssh_url":"git@github.com:SxMShaDoW/embeddable-badges-plugin.git","clone_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin.git","svn_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin","homepage":null,"size":160,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"SxMShaDoW:master","ref":"master","sha":"cd1ef33521f335ccf2fd22a8fdaf2515e9f90c85","user":{"login":"SxMShaDoW","id":9122189,"avatar_url":"https://avatars.githubusercontent.com/u/9122189?v=3","gravatar_id":"","url":"https://api.github.com/users/SxMShaDoW","html_url":"https://github.com/SxMShaDoW","followers_url":"https://api.github.com/users/SxMShaDoW/followers","following_url":"https://api.github.com/users/SxMShaDoW/following{/other_user}","gists_url":"https://api.github.com/users/SxMShaDoW/gists{/gist_id}","starred_url":"https://api.github.com/users/SxMShaDoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SxMShaDoW/subscriptions","organizations_url":"https://api.github.com/users/SxMShaDoW/orgs","repos_url":"https://api.github.com/users/SxMShaDoW/repos","events_url":"https://api.github.com/users/SxMShaDoW/events{/privacy}","received_events_url":"https://api.github.com/users/SxMShaDoW/received_events","type":"User","site_admin":false},"repo":{"id":55563314,"name":"embeddable-badges-plugin","full_name":"SxMShaDoW/embeddable-badges-plugin","owner":{"login":"SxMShaDoW","id":9122189,"avatar_url":"https://avatars.githubusercontent.com/u/9122189?v=3","gravatar_id":"","url":"https://api.github.com/users/SxMShaDoW","html_url":"https://github.com/SxMShaDoW","followers_url":"https://api.github.com/users/SxMShaDoW/followers","following_url":"https://api.github.com/users/SxMShaDoW/following{/other_user}","gists_url":"https://api.github.com/users/SxMShaDoW/gists{/gist_id}","starred_url":"https://api.github.com/users/SxMShaDoW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SxMShaDoW/subscriptions","organizations_url":"https://api.github.com/users/SxMShaDoW/orgs","repos_url":"https://api.github.com/users/SxMShaDoW/repos","events_url":"https://api.github.com/users/SxMShaDoW/events{/privacy}","received_events_url":"https://api.github.com/users/SxMShaDoW/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin","description":"Jenkins plugin for embedded badges","fork":false,"url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin","forks_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/forks","keys_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/teams","hooks_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/hooks","issue_events_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/events","assignees_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/tags","blobs_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/languages","stargazers_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/stargazers","contributors_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/contributors","subscribers_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/subscribers","subscription_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/subscription","commits_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/merges","archive_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/downloads","issues_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/labels{/name}","releases_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/deployments","created_at":"2016-04-06T00:28:30Z","updated_at":"2016-04-06T00:29:01Z","pushed_at":"2016-04-12T17:09:11Z","git_url":"git://github.com/SxMShaDoW/embeddable-badges-plugin.git","ssh_url":"git@github.com:SxMShaDoW/embeddable-badges-plugin.git","clone_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin.git","svn_url":"https://github.com/SxMShaDoW/embeddable-badges-plugin","homepage":null,"size":160,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/19"},"html":{"href":"https://github.com/SxMShaDoW/embeddable-badges-plugin/pull/19"},"issue":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues/19"},"comments":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/SxMShaDoW/embeddable-badges-plugin/statuses/fa17e8648fae4dced3e402de74d0296ca52d0b5e"}}}}