{"action":"created","comment":{"url":"https://api.github.com/repos/zalando/logbook/pulls/comments/63273843","id":63273843,"diff_hunk":"@@ -0,0 +1,59 @@\n+package org.zalando.logbook.io;\n+\n+/*\n+ * #%L\n+ * Logbook: Core\n+ * %%\n+ * Copyright (C) 2015 - 2016 Zalando SE\n+ * %%\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ * \n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ * \n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ * #L%\n+ */\n+\n+import java.io.ByteArrayOutputStream;\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.io.OutputStream;\n+import java.util.Objects;\n+\n+public final class ByteStreams {\n+\n+    ByteStreams() {\n+        // package private so we can trick code coverage\n+    }\n+\n+    private static final int BUF_SIZE = 0x1000; // 4K","path":"logbook-core/src/main/java/org/zalando/logbook/io/ByteStreams.java","position":35,"original_position":35,"commit_id":"96c8d2457061745659dfc7cd8d6a5af77a888a67","original_commit_id":"96c8d2457061745659dfc7cd8d6a5af77a888a67","user":{"login":"jhorstmann","id":689138,"avatar_url":"https://avatars.githubusercontent.com/u/689138?v=3","gravatar_id":"","url":"https://api.github.com/users/jhorstmann","html_url":"https://github.com/jhorstmann","followers_url":"https://api.github.com/users/jhorstmann/followers","following_url":"https://api.github.com/users/jhorstmann/following{/other_user}","gists_url":"https://api.github.com/users/jhorstmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jhorstmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhorstmann/subscriptions","organizations_url":"https://api.github.com/users/jhorstmann/orgs","repos_url":"https://api.github.com/users/jhorstmann/repos","events_url":"https://api.github.com/users/jhorstmann/events{/privacy}","received_events_url":"https://api.github.com/users/jhorstmann/received_events","type":"User","site_admin":false},"body":"Just write 4096 and remove the comment","created_at":"2016-05-14T09:53:09Z","updated_at":"2016-05-14T09:53:09Z","html_url":"https://github.com/zalando/logbook/pull/88#discussion_r63273843","pull_request_url":"https://api.github.com/repos/zalando/logbook/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/zalando/logbook/pulls/comments/63273843"},"html":{"href":"https://github.com/zalando/logbook/pull/88#discussion_r63273843"},"pull_request":{"href":"https://api.github.com/repos/zalando/logbook/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/zalando/logbook/pulls/88","id":70065625,"html_url":"https://github.com/zalando/logbook/pull/88","diff_url":"https://github.com/zalando/logbook/pull/88.diff","patch_url":"https://github.com/zalando/logbook/pull/88.patch","issue_url":"https://api.github.com/repos/zalando/logbook/issues/88","number":88,"state":"open","locked":false,"title":"Remove guava dependency","user":{"login":"AlexanderYastrebov","id":697976,"avatar_url":"https://avatars.githubusercontent.com/u/697976?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderYastrebov","html_url":"https://github.com/AlexanderYastrebov","followers_url":"https://api.github.com/users/AlexanderYastrebov/followers","following_url":"https://api.github.com/users/AlexanderYastrebov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderYastrebov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderYastrebov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderYastrebov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderYastrebov/orgs","repos_url":"https://api.github.com/users/AlexanderYastrebov/repos","events_url":"https://api.github.com/users/AlexanderYastrebov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderYastrebov/received_events","type":"User","site_admin":false},"body":"Looks like now everybody will do this)","created_at":"2016-05-13T22:12:22Z","updated_at":"2016-05-14T09:53:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b54ebbe6040a9293c85a7483f3d08564ded1413","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zalando/logbook/pulls/88/commits","review_comments_url":"https://api.github.com/repos/zalando/logbook/pulls/88/comments","review_comment_url":"https://api.github.com/repos/zalando/logbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando/logbook/issues/88/comments","statuses_url":"https://api.github.com/repos/zalando/logbook/statuses/96c8d2457061745659dfc7cd8d6a5af77a888a67","head":{"label":"zalando:remove-guava-competition","ref":"remove-guava-competition","sha":"96c8d2457061745659dfc7cd8d6a5af77a888a67","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":42457394,"name":"logbook","full_name":"zalando/logbook","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/logbook","description":"An extensible Java library for HTTP request and response logging","fork":false,"url":"https://api.github.com/repos/zalando/logbook","forks_url":"https://api.github.com/repos/zalando/logbook/forks","keys_url":"https://api.github.com/repos/zalando/logbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/logbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/logbook/teams","hooks_url":"https://api.github.com/repos/zalando/logbook/hooks","issue_events_url":"https://api.github.com/repos/zalando/logbook/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/logbook/events","assignees_url":"https://api.github.com/repos/zalando/logbook/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/logbook/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/logbook/tags","blobs_url":"https://api.github.com/repos/zalando/logbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/logbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/logbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/logbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/logbook/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/logbook/languages","stargazers_url":"https://api.github.com/repos/zalando/logbook/stargazers","contributors_url":"https://api.github.com/repos/zalando/logbook/contributors","subscribers_url":"https://api.github.com/repos/zalando/logbook/subscribers","subscription_url":"https://api.github.com/repos/zalando/logbook/subscription","commits_url":"https://api.github.com/repos/zalando/logbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/logbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/logbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/logbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/logbook/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/logbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/logbook/merges","archive_url":"https://api.github.com/repos/zalando/logbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/logbook/downloads","issues_url":"https://api.github.com/repos/zalando/logbook/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/logbook/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/logbook/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/logbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/logbook/labels{/name}","releases_url":"https://api.github.com/repos/zalando/logbook/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/logbook/deployments","created_at":"2015-09-14T15:29:12Z","updated_at":"2016-05-13T21:52:59Z","pushed_at":"2016-05-14T01:16:01Z","git_url":"git://github.com/zalando/logbook.git","ssh_url":"git@github.com:zalando/logbook.git","clone_url":"https://github.com/zalando/logbook.git","svn_url":"https://github.com/zalando/logbook","homepage":"","size":740,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":16,"default_branch":"master"}},"base":{"label":"zalando:master","ref":"master","sha":"602ae557066dc3b0c6252a97384d0f55aba3be1b","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":42457394,"name":"logbook","full_name":"zalando/logbook","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/logbook","description":"An extensible Java library for HTTP request and response logging","fork":false,"url":"https://api.github.com/repos/zalando/logbook","forks_url":"https://api.github.com/repos/zalando/logbook/forks","keys_url":"https://api.github.com/repos/zalando/logbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/logbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/logbook/teams","hooks_url":"https://api.github.com/repos/zalando/logbook/hooks","issue_events_url":"https://api.github.com/repos/zalando/logbook/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/logbook/events","assignees_url":"https://api.github.com/repos/zalando/logbook/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/logbook/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/logbook/tags","blobs_url":"https://api.github.com/repos/zalando/logbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/logbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/logbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/logbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/logbook/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/logbook/languages","stargazers_url":"https://api.github.com/repos/zalando/logbook/stargazers","contributors_url":"https://api.github.com/repos/zalando/logbook/contributors","subscribers_url":"https://api.github.com/repos/zalando/logbook/subscribers","subscription_url":"https://api.github.com/repos/zalando/logbook/subscription","commits_url":"https://api.github.com/repos/zalando/logbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/logbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/logbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/logbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/logbook/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/logbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/logbook/merges","archive_url":"https://api.github.com/repos/zalando/logbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/logbook/downloads","issues_url":"https://api.github.com/repos/zalando/logbook/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/logbook/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/logbook/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/logbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/logbook/labels{/name}","releases_url":"https://api.github.com/repos/zalando/logbook/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/logbook/deployments","created_at":"2015-09-14T15:29:12Z","updated_at":"2016-05-13T21:52:59Z","pushed_at":"2016-05-14T01:16:01Z","git_url":"git://github.com/zalando/logbook.git","ssh_url":"git@github.com:zalando/logbook.git","clone_url":"https://github.com/zalando/logbook.git","svn_url":"https://github.com/zalando/logbook","homepage":"","size":740,"stargazers_count":16,"watchers_count":16,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando/logbook/pulls/88"},"html":{"href":"https://github.com/zalando/logbook/pull/88"},"issue":{"href":"https://api.github.com/repos/zalando/logbook/issues/88"},"comments":{"href":"https://api.github.com/repos/zalando/logbook/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando/logbook/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando/logbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando/logbook/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/zalando/logbook/statuses/96c8d2457061745659dfc7cd8d6a5af77a888a67"}}}}