{"action":"created","comment":{"url":"https://api.github.com/repos/strongbox/strongbox/pulls/comments/96220408","pull_request_review_id":16796224,"id":96220408,"diff_hunk":"@@ -15,18 +20,118 @@\n public class ArtifactOutputStream\n         extends MultipleDigestOutputStream\n {\n-\n+    private Function<byte[], String> digestStringifier = MessageDigestUtils::convertToHexadecimalString;\n     private ArtifactCoordinates coordinates;\n+    /**\n+     * Used to cache Artifact contents if needed.\n+     */\n+    private OutputStream cacheOutputStream;\n+    private Function<OutputStreamFunction, ?> cahceOutputStreamTemplate = this::doWithOutputStream;\n \n-    public ArtifactOutputStream(OutputStream source, ArtifactCoordinates coordinates) throws NoSuchAlgorithmException\n+    public ArtifactOutputStream(OutputStream source,\n+                                ArtifactCoordinates coordinates)\n+        throws NoSuchAlgorithmException\n     {\n-        super(source);\n+        super(source, new String[] {});\n         this.coordinates = coordinates;\n     }\n \n+    public void setCahceOutputStreamTemplate(Function<OutputStreamFunction, ?> chahceOutputStreamTemplate)","path":"strongbox-storage/strongbox-storage-api/src/main/java/org/carlspring/strongbox/io/ArtifactOutputStream.java","position":39,"original_position":39,"commit_id":"f321d935b123633de477e39d72e84613d2edac55","original_commit_id":"f321d935b123633de477e39d72e84613d2edac55","user":{"login":"carlspring","id":1436265,"avatar_url":"https://avatars.githubusercontent.com/u/1436265?v=3","gravatar_id":"","url":"https://api.github.com/users/carlspring","html_url":"https://github.com/carlspring","followers_url":"https://api.github.com/users/carlspring/followers","following_url":"https://api.github.com/users/carlspring/following{/other_user}","gists_url":"https://api.github.com/users/carlspring/gists{/gist_id}","starred_url":"https://api.github.com/users/carlspring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlspring/subscriptions","organizations_url":"https://api.github.com/users/carlspring/orgs","repos_url":"https://api.github.com/users/carlspring/repos","events_url":"https://api.github.com/users/carlspring/events{/privacy}","received_events_url":"https://api.github.com/users/carlspring/received_events","type":"User","site_admin":false},"body":"There's a typo here (and in a few other places -- please search for `cahce` to the the other places and correct them). The name of the method should be `setCacheOutputStreamTemplate`; the parameter's name is also misspelled.","created_at":"2017-01-16T12:38:14Z","updated_at":"2017-01-16T12:38:14Z","html_url":"https://github.com/strongbox/strongbox/pull/206#discussion_r96220408","pull_request_url":"https://api.github.com/repos/strongbox/strongbox/pulls/206","_links":{"self":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/comments/96220408"},"html":{"href":"https://github.com/strongbox/strongbox/pull/206#discussion_r96220408"},"pull_request":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/206"}}},"pull_request":{"url":"https://api.github.com/repos/strongbox/strongbox/pulls/206","id":101647556,"html_url":"https://github.com/strongbox/strongbox/pull/206","diff_url":"https://github.com/strongbox/strongbox/pull/206.diff","patch_url":"https://github.com/strongbox/strongbox/pull/206.patch","issue_url":"https://api.github.com/repos/strongbox/strongbox/issues/206","number":206,"state":"open","locked":false,"title":"SB-714: checksum headers implementation","user":{"login":"sbespalov","id":22783811,"avatar_url":"https://avatars.githubusercontent.com/u/22783811?v=3","gravatar_id":"","url":"https://api.github.com/users/sbespalov","html_url":"https://github.com/sbespalov","followers_url":"https://api.github.com/users/sbespalov/followers","following_url":"https://api.github.com/users/sbespalov/following{/other_user}","gists_url":"https://api.github.com/users/sbespalov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbespalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbespalov/subscriptions","organizations_url":"https://api.github.com/users/sbespalov/orgs","repos_url":"https://api.github.com/users/sbespalov/repos","events_url":"https://api.github.com/users/sbespalov/events{/privacy}","received_events_url":"https://api.github.com/users/sbespalov/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-16T08:34:24Z","updated_at":"2017-01-16T12:38:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2fc3ee7a7cfe9425bb3320c13ca28fea2e7fc6c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/strongbox/strongbox/pulls/206/commits","review_comments_url":"https://api.github.com/repos/strongbox/strongbox/pulls/206/comments","review_comment_url":"https://api.github.com/repos/strongbox/strongbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongbox/strongbox/issues/206/comments","statuses_url":"https://api.github.com/repos/strongbox/strongbox/statuses/f321d935b123633de477e39d72e84613d2edac55","head":{"label":"sbespalov:SB-714","ref":"SB-714","sha":"f321d935b123633de477e39d72e84613d2edac55","user":{"login":"sbespalov","id":22783811,"avatar_url":"https://avatars.githubusercontent.com/u/22783811?v=3","gravatar_id":"","url":"https://api.github.com/users/sbespalov","html_url":"https://github.com/sbespalov","followers_url":"https://api.github.com/users/sbespalov/followers","following_url":"https://api.github.com/users/sbespalov/following{/other_user}","gists_url":"https://api.github.com/users/sbespalov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbespalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbespalov/subscriptions","organizations_url":"https://api.github.com/users/sbespalov/orgs","repos_url":"https://api.github.com/users/sbespalov/repos","events_url":"https://api.github.com/users/sbespalov/events{/privacy}","received_events_url":"https://api.github.com/users/sbespalov/received_events","type":"User","site_admin":false},"repo":{"id":72494340,"name":"strongbox","full_name":"sbespalov/strongbox","owner":{"login":"sbespalov","id":22783811,"avatar_url":"https://avatars.githubusercontent.com/u/22783811?v=3","gravatar_id":"","url":"https://api.github.com/users/sbespalov","html_url":"https://github.com/sbespalov","followers_url":"https://api.github.com/users/sbespalov/followers","following_url":"https://api.github.com/users/sbespalov/following{/other_user}","gists_url":"https://api.github.com/users/sbespalov/gists{/gist_id}","starred_url":"https://api.github.com/users/sbespalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbespalov/subscriptions","organizations_url":"https://api.github.com/users/sbespalov/orgs","repos_url":"https://api.github.com/users/sbespalov/repos","events_url":"https://api.github.com/users/sbespalov/events{/privacy}","received_events_url":"https://api.github.com/users/sbespalov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbespalov/strongbox","description":null,"fork":true,"url":"https://api.github.com/repos/sbespalov/strongbox","forks_url":"https://api.github.com/repos/sbespalov/strongbox/forks","keys_url":"https://api.github.com/repos/sbespalov/strongbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbespalov/strongbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbespalov/strongbox/teams","hooks_url":"https://api.github.com/repos/sbespalov/strongbox/hooks","issue_events_url":"https://api.github.com/repos/sbespalov/strongbox/issues/events{/number}","events_url":"https://api.github.com/repos/sbespalov/strongbox/events","assignees_url":"https://api.github.com/repos/sbespalov/strongbox/assignees{/user}","branches_url":"https://api.github.com/repos/sbespalov/strongbox/branches{/branch}","tags_url":"https://api.github.com/repos/sbespalov/strongbox/tags","blobs_url":"https://api.github.com/repos/sbespalov/strongbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbespalov/strongbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbespalov/strongbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbespalov/strongbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbespalov/strongbox/statuses/{sha}","languages_url":"https://api.github.com/repos/sbespalov/strongbox/languages","stargazers_url":"https://api.github.com/repos/sbespalov/strongbox/stargazers","contributors_url":"https://api.github.com/repos/sbespalov/strongbox/contributors","subscribers_url":"https://api.github.com/repos/sbespalov/strongbox/subscribers","subscription_url":"https://api.github.com/repos/sbespalov/strongbox/subscription","commits_url":"https://api.github.com/repos/sbespalov/strongbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbespalov/strongbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbespalov/strongbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbespalov/strongbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbespalov/strongbox/contents/{+path}","compare_url":"https://api.github.com/repos/sbespalov/strongbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbespalov/strongbox/merges","archive_url":"https://api.github.com/repos/sbespalov/strongbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbespalov/strongbox/downloads","issues_url":"https://api.github.com/repos/sbespalov/strongbox/issues{/number}","pulls_url":"https://api.github.com/repos/sbespalov/strongbox/pulls{/number}","milestones_url":"https://api.github.com/repos/sbespalov/strongbox/milestones{/number}","notifications_url":"https://api.github.com/repos/sbespalov/strongbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbespalov/strongbox/labels{/name}","releases_url":"https://api.github.com/repos/sbespalov/strongbox/releases{/id}","deployments_url":"https://api.github.com/repos/sbespalov/strongbox/deployments","created_at":"2016-11-01T01:54:58Z","updated_at":"2016-11-01T01:55:00Z","pushed_at":"2017-01-16T08:32:30Z","git_url":"git://github.com/sbespalov/strongbox.git","ssh_url":"git@github.com:sbespalov/strongbox.git","clone_url":"https://github.com/sbespalov/strongbox.git","svn_url":"https://github.com/sbespalov/strongbox","homepage":null,"size":3719,"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":"strongbox:master","ref":"master","sha":"0b872217d7c73a8bc0ee17ba854eb93e4e189e98","user":{"login":"strongbox","id":5637881,"avatar_url":"https://avatars.githubusercontent.com/u/5637881?v=3","gravatar_id":"","url":"https://api.github.com/users/strongbox","html_url":"https://github.com/strongbox","followers_url":"https://api.github.com/users/strongbox/followers","following_url":"https://api.github.com/users/strongbox/following{/other_user}","gists_url":"https://api.github.com/users/strongbox/gists{/gist_id}","starred_url":"https://api.github.com/users/strongbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongbox/subscriptions","organizations_url":"https://api.github.com/users/strongbox/orgs","repos_url":"https://api.github.com/users/strongbox/repos","events_url":"https://api.github.com/users/strongbox/events{/privacy}","received_events_url":"https://api.github.com/users/strongbox/received_events","type":"Organization","site_admin":false},"repo":{"id":11830269,"name":"strongbox","full_name":"strongbox/strongbox","owner":{"login":"strongbox","id":5637881,"avatar_url":"https://avatars.githubusercontent.com/u/5637881?v=3","gravatar_id":"","url":"https://api.github.com/users/strongbox","html_url":"https://github.com/strongbox","followers_url":"https://api.github.com/users/strongbox/followers","following_url":"https://api.github.com/users/strongbox/following{/other_user}","gists_url":"https://api.github.com/users/strongbox/gists{/gist_id}","starred_url":"https://api.github.com/users/strongbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongbox/subscriptions","organizations_url":"https://api.github.com/users/strongbox/orgs","repos_url":"https://api.github.com/users/strongbox/repos","events_url":"https://api.github.com/users/strongbox/events{/privacy}","received_events_url":"https://api.github.com/users/strongbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongbox/strongbox","description":null,"fork":false,"url":"https://api.github.com/repos/strongbox/strongbox","forks_url":"https://api.github.com/repos/strongbox/strongbox/forks","keys_url":"https://api.github.com/repos/strongbox/strongbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongbox/strongbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongbox/strongbox/teams","hooks_url":"https://api.github.com/repos/strongbox/strongbox/hooks","issue_events_url":"https://api.github.com/repos/strongbox/strongbox/issues/events{/number}","events_url":"https://api.github.com/repos/strongbox/strongbox/events","assignees_url":"https://api.github.com/repos/strongbox/strongbox/assignees{/user}","branches_url":"https://api.github.com/repos/strongbox/strongbox/branches{/branch}","tags_url":"https://api.github.com/repos/strongbox/strongbox/tags","blobs_url":"https://api.github.com/repos/strongbox/strongbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongbox/strongbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongbox/strongbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongbox/strongbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongbox/strongbox/statuses/{sha}","languages_url":"https://api.github.com/repos/strongbox/strongbox/languages","stargazers_url":"https://api.github.com/repos/strongbox/strongbox/stargazers","contributors_url":"https://api.github.com/repos/strongbox/strongbox/contributors","subscribers_url":"https://api.github.com/repos/strongbox/strongbox/subscribers","subscription_url":"https://api.github.com/repos/strongbox/strongbox/subscription","commits_url":"https://api.github.com/repos/strongbox/strongbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongbox/strongbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongbox/strongbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongbox/strongbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongbox/strongbox/contents/{+path}","compare_url":"https://api.github.com/repos/strongbox/strongbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongbox/strongbox/merges","archive_url":"https://api.github.com/repos/strongbox/strongbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongbox/strongbox/downloads","issues_url":"https://api.github.com/repos/strongbox/strongbox/issues{/number}","pulls_url":"https://api.github.com/repos/strongbox/strongbox/pulls{/number}","milestones_url":"https://api.github.com/repos/strongbox/strongbox/milestones{/number}","notifications_url":"https://api.github.com/repos/strongbox/strongbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongbox/strongbox/labels{/name}","releases_url":"https://api.github.com/repos/strongbox/strongbox/releases{/id}","deployments_url":"https://api.github.com/repos/strongbox/strongbox/deployments","created_at":"2013-08-01T23:27:37Z","updated_at":"2016-11-23T21:29:14Z","pushed_at":"2017-01-16T08:34:24Z","git_url":"git://github.com/strongbox/strongbox.git","ssh_url":"git@github.com:strongbox/strongbox.git","clone_url":"https://github.com/strongbox/strongbox.git","svn_url":"https://github.com/strongbox/strongbox","homepage":null,"size":3747,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":5,"forks":25,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/206"},"html":{"href":"https://github.com/strongbox/strongbox/pull/206"},"issue":{"href":"https://api.github.com/repos/strongbox/strongbox/issues/206"},"comments":{"href":"https://api.github.com/repos/strongbox/strongbox/issues/206/comments"},"review_comments":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/206/comments"},"review_comment":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongbox/strongbox/pulls/206/commits"},"statuses":{"href":"https://api.github.com/repos/strongbox/strongbox/statuses/f321d935b123633de477e39d72e84613d2edac55"}}}}
{"actor":{"display_login":"carlspring"}}