{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments/75951923","id":75951923,"diff_hunk":"@@ -0,0 +1,110 @@\n+/*\n+ * Copyright 2016 Google Inc. All Rights Reserved.\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+ */\n+\n+package com.google.cloud.storage.contrib.nio;\n+\n+import com.google.common.collect.ImmutableList;\n+import com.google.common.testing.NullPointerTester;\n+import org.junit.Before;\n+import org.junit.Ignore;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.rules.ExpectedException;\n+import org.junit.runner.RunWith;\n+import org.junit.runners.JUnit4;\n+\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.io.OutputStream;","path":"gcloud-java-contrib/gcloud-java-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageLateInitializationTest.java","position":31,"original_position":31,"commit_id":"4711cd50514e0260251132762ddb4b749b6f7394","original_commit_id":"4711cd50514e0260251132762ddb4b749b6f7394","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Avoid unused imports such as 'java.io.OutputStream'](https://www.codacy.com/app/mziccard/gcloud-java/file/3519582303/issues/source?bid=3123103&fileBranchId=3624567#l31)","created_at":"2016-08-23T21:12:36Z","updated_at":"2016-08-23T21:12:36Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/1189#discussion_r75951923","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/1189","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments/75951923"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/1189#discussion_r75951923"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/1189"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/1189","id":82441594,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/1189","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/1189.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/1189.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/1189","number":1189,"state":"open","locked":false,"title":"Support enumeration of filesytems before configuring gcloud","user":{"login":"jean-philippe-martin","id":10458949,"avatar_url":"https://avatars.githubusercontent.com/u/10458949?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-philippe-martin","html_url":"https://github.com/jean-philippe-martin","followers_url":"https://api.github.com/users/jean-philippe-martin/followers","following_url":"https://api.github.com/users/jean-philippe-martin/following{/other_user}","gists_url":"https://api.github.com/users/jean-philippe-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-philippe-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-philippe-martin/subscriptions","organizations_url":"https://api.github.com/users/jean-philippe-martin/orgs","repos_url":"https://api.github.com/users/jean-philippe-martin/repos","events_url":"https://api.github.com/users/jean-philippe-martin/events{/privacy}","received_events_url":"https://api.github.com/users/jean-philippe-martin/received_events","type":"User","site_admin":false},"body":"This should resolve issue #1188.\r\n\r\nOne possible point of discussion is that I have left in the tests I used to reproduce the problem and ensure that it was fixed. These tests are only meaningful when gcloud is NOT configured (the opposite requirement of our integration tests) so I have them disabled here, with the intention that they ease manual testing by un-configuring gcloud and running those tests by hand. It would be great if there were a good way to run these tests automatically.\r\n\r\nWhile I was at it I added a friendly message to the integration tests in case someone tries to run them before configuring gcloud.","created_at":"2016-08-23T21:09:24Z","updated_at":"2016-08-23T21:12:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3940ed38fde70f85a0fc4ffd079d7b4bc5351818","assignee":{"login":"mziccard","id":450933,"avatar_url":"https://avatars.githubusercontent.com/u/450933?v=3","gravatar_id":"","url":"https://api.github.com/users/mziccard","html_url":"https://github.com/mziccard","followers_url":"https://api.github.com/users/mziccard/followers","following_url":"https://api.github.com/users/mziccard/following{/other_user}","gists_url":"https://api.github.com/users/mziccard/gists{/gist_id}","starred_url":"https://api.github.com/users/mziccard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mziccard/subscriptions","organizations_url":"https://api.github.com/users/mziccard/orgs","repos_url":"https://api.github.com/users/mziccard/repos","events_url":"https://api.github.com/users/mziccard/events{/privacy}","received_events_url":"https://api.github.com/users/mziccard/received_events","type":"User","site_admin":false},"assignees":[{"login":"mziccard","id":450933,"avatar_url":"https://avatars.githubusercontent.com/u/450933?v=3","gravatar_id":"","url":"https://api.github.com/users/mziccard","html_url":"https://github.com/mziccard","followers_url":"https://api.github.com/users/mziccard/followers","following_url":"https://api.github.com/users/mziccard/following{/other_user}","gists_url":"https://api.github.com/users/mziccard/gists{/gist_id}","starred_url":"https://api.github.com/users/mziccard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mziccard/subscriptions","organizations_url":"https://api.github.com/users/mziccard/orgs","repos_url":"https://api.github.com/users/mziccard/repos","events_url":"https://api.github.com/users/mziccard/events{/privacy}","received_events_url":"https://api.github.com/users/mziccard/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/1189/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/1189/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/1189/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/4711cd50514e0260251132762ddb4b749b6f7394","head":{"label":"jean-philippe-martin:nio_coexist","ref":"nio_coexist","sha":"4711cd50514e0260251132762ddb4b749b6f7394","user":{"login":"jean-philippe-martin","id":10458949,"avatar_url":"https://avatars.githubusercontent.com/u/10458949?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-philippe-martin","html_url":"https://github.com/jean-philippe-martin","followers_url":"https://api.github.com/users/jean-philippe-martin/followers","following_url":"https://api.github.com/users/jean-philippe-martin/following{/other_user}","gists_url":"https://api.github.com/users/jean-philippe-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-philippe-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-philippe-martin/subscriptions","organizations_url":"https://api.github.com/users/jean-philippe-martin/orgs","repos_url":"https://api.github.com/users/jean-philippe-martin/repos","events_url":"https://api.github.com/users/jean-philippe-martin/events{/privacy}","received_events_url":"https://api.github.com/users/jean-philippe-martin/received_events","type":"User","site_admin":false},"repo":{"id":53004199,"name":"gcloud-java","full_name":"jean-philippe-martin/gcloud-java","owner":{"login":"jean-philippe-martin","id":10458949,"avatar_url":"https://avatars.githubusercontent.com/u/10458949?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-philippe-martin","html_url":"https://github.com/jean-philippe-martin","followers_url":"https://api.github.com/users/jean-philippe-martin/followers","following_url":"https://api.github.com/users/jean-philippe-martin/following{/other_user}","gists_url":"https://api.github.com/users/jean-philippe-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-philippe-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-philippe-martin/subscriptions","organizations_url":"https://api.github.com/users/jean-philippe-martin/orgs","repos_url":"https://api.github.com/users/jean-philippe-martin/repos","events_url":"https://api.github.com/users/jean-philippe-martin/events{/privacy}","received_events_url":"https://api.github.com/users/jean-philippe-martin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jean-philippe-martin/gcloud-java","description":"Google Cloud Client Library for Java","fork":true,"url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java","forks_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/forks","keys_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/teams","hooks_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/events","assignees_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/tags","blobs_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/subscription","commits_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/merges","archive_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/downloads","issues_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/deployments","created_at":"2016-03-02T23:25:26Z","updated_at":"2016-03-02T23:25:28Z","pushed_at":"2016-08-23T21:05:33Z","git_url":"git://github.com/jean-philippe-martin/gcloud-java.git","ssh_url":"git@github.com:jean-philippe-martin/gcloud-java.git","clone_url":"https://github.com/jean-philippe-martin/gcloud-java.git","svn_url":"https://github.com/jean-philippe-martin/gcloud-java","homepage":"http://googlecloudplatform.github.io/gcloud-java/","size":30553,"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":"GoogleCloudPlatform:master","ref":"master","sha":"f9bbbd438a754d03ca0b8ee1d0b8722d1bd5d28a","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":26181278,"name":"gcloud-java","full_name":"GoogleCloudPlatform/gcloud-java","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-java","description":"Google Cloud Client Library for Java","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/deployments","created_at":"2014-11-04T17:57:16Z","updated_at":"2016-08-23T19:29:39Z","pushed_at":"2016-08-23T21:09:24Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-java.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-java.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-java","homepage":"http://googlecloudplatform.github.io/gcloud-java/","size":242926,"stargazers_count":135,"watchers_count":135,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":69,"mirror_url":null,"open_issues_count":132,"forks":69,"open_issues":132,"watchers":135,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/1189"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/1189"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/1189"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/1189/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/1189/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/1189/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/4711cd50514e0260251132762ddb4b749b6f7394"}}}}
{"actor":{"display_login":"codacy-bot"}}