{"action":"created","comment":{"url":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/comments/36426715","id":36426715,"diff_hunk":"@@ -0,0 +1,321 @@\n+/*\n+ * Copyright 2015 MongoDB, Inc.\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.mongodb.client.gridfs;\n+\n+import com.mongodb.MongoClient;\n+import com.mongodb.MongoGridFSException;\n+import com.mongodb.ReadPreference;\n+import com.mongodb.WriteConcern;\n+import com.mongodb.client.MongoCollection;\n+import com.mongodb.client.MongoDatabase;\n+import com.mongodb.client.gridfs.model.GridFSDownloadByNameOptions;\n+import com.mongodb.client.gridfs.model.GridFSFile;\n+import com.mongodb.client.gridfs.model.GridFSUploadOptions;\n+import com.mongodb.client.model.IndexOptions;\n+import com.mongodb.client.model.Indexes;\n+import com.mongodb.client.result.DeleteResult;\n+import com.mongodb.client.result.UpdateResult;\n+import org.bson.BsonDocument;\n+import org.bson.BsonInt32;\n+import org.bson.BsonObjectId;\n+import org.bson.BsonString;\n+import org.bson.BsonValue;\n+import org.bson.codecs.configuration.CodecRegistry;\n+import org.bson.conversions.Bson;\n+import org.bson.types.ObjectId;\n+\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.io.OutputStream;\n+import java.util.ArrayList;\n+\n+import static com.mongodb.ReadPreference.primary;\n+import static com.mongodb.assertions.Assertions.notNull;\n+import static java.lang.String.format;\n+\n+@SuppressWarnings(\"deprecation\")\n+final class GridFSBucketImpl implements GridFSBucket {\n+    private static final CodecRegistry DEFAULT_CODEC_REGISTRY = MongoClient.getDefaultCodecRegistry();\n+\n+    private final MongoDatabase database;\n+    private final String bucketName;\n+    private final int chunkSizeBytes;\n+    private final CodecRegistry codecRegistry;\n+    private final WriteConcern writeConcern;\n+    private final ReadPreference readPreference;\n+    private final MongoCollection<BsonDocument> filesCollection;\n+    private final MongoCollection<BsonDocument> chunksCollection;\n+    private volatile boolean checkedIndexes;\n+\n+    GridFSBucketImpl(final MongoDatabase database) {\n+        this(database, \"fs\");\n+    }\n+\n+    GridFSBucketImpl(final MongoDatabase database, final String bucketName) {\n+        this.database = notNull(\"database\", database);\n+        this.bucketName = notNull(\"bucketName\", bucketName);\n+        this.chunkSizeBytes = 255;\n+        this.codecRegistry = database.getCodecRegistry();\n+        this.writeConcern = database.getWriteConcern();\n+        this.readPreference = database.getReadPreference();\n+        this.filesCollection = getFilesCollection();\n+        this.chunksCollection = getChunksCollection();\n+    }\n+\n+    GridFSBucketImpl(final MongoDatabase database, final String bucketName, final int chunkSizeBytes, final CodecRegistry codecRegistry,\n+                     final ReadPreference readPreference, final WriteConcern writeConcern,\n+                     final MongoCollection<BsonDocument> filesCollection, final MongoCollection<BsonDocument> chunksCollection,\n+                     final boolean checkedIndexes) {\n+        this.database = notNull(\"database\", database);\n+        this.bucketName = notNull(\"bucketName\", bucketName);\n+        this.chunkSizeBytes = chunkSizeBytes;\n+        this.codecRegistry = notNull(\"codecRegistry\", codecRegistry);\n+        this.readPreference = notNull(\"readPreference\", readPreference);\n+        this.writeConcern = notNull(\"writeConcern\", writeConcern);\n+        this.checkedIndexes = checkedIndexes;\n+        this.filesCollection =  notNull(\"filesCollection\", filesCollection);\n+        this.chunksCollection = notNull(\"chunksCollection\", chunksCollection);\n+    }\n+\n+    @Override\n+    public int getChunkSizeBytes() {\n+        return chunkSizeBytes;\n+    }\n+\n+    @Override\n+    public ReadPreference getReadPreference() {\n+        return readPreference;\n+    }\n+\n+    @Override\n+    public WriteConcern getWriteConcern() {\n+        return writeConcern;\n+    }\n+\n+    @Override\n+    public GridFSBucket withChunkSizeBytes(final int chunkSizeBytes) {\n+        return new GridFSBucketImpl(database, bucketName, chunkSizeBytes, codecRegistry, readPreference, writeConcern, filesCollection,\n+                chunksCollection, checkedIndexes);\n+    }\n+\n+    @Override\n+    public GridFSBucket withReadPreference(final ReadPreference readPreference) {\n+        return new GridFSBucketImpl(database, bucketName, chunkSizeBytes, codecRegistry, readPreference, writeConcern, filesCollection,\n+                chunksCollection, checkedIndexes);\n+    }\n+\n+    @Override\n+    public GridFSBucket withWriteConcern(final WriteConcern writeConcern) {\n+        return new GridFSBucketImpl(database, bucketName, chunkSizeBytes, codecRegistry, readPreference, writeConcern, filesCollection,\n+                chunksCollection, checkedIndexes);\n+    }\n+\n+    @Override\n+    public GridFSUploadStream openUploadStream(final String filename) {\n+        return openUploadStream(filename, new GridFSUploadOptions());\n+    }\n+\n+    @Override\n+    public GridFSUploadStream openUploadStream(final String filename, final GridFSUploadOptions options) {\n+        int chunkSize = options.getChunkSizeBytes() == null ? chunkSizeBytes : options.getChunkSizeBytes();\n+        Bson metadata = options.getMetadata() == null ? new BsonDocument() : options.getMetadata();\n+        BsonDocument metadataBsonDocument = metadata.toBsonDocument(BsonDocument.class, codecRegistry);\n+        checkCreateIndex();\n+        return new GridFSUploadStreamImpl(filesCollection, chunksCollection, new ObjectId(), filename, chunkSize, metadataBsonDocument);\n+    }\n+\n+    @Override\n+    public ObjectId uploadFromStream(final String filename, final InputStream source) {\n+        return uploadFromStream(filename, source, new GridFSUploadOptions());\n+    }\n+\n+    @Override\n+    public ObjectId uploadFromStream(final String filename, final InputStream source, final GridFSUploadOptions options) {\n+        GridFSUploadStream uploadStream = openUploadStream(filename, options);\n+        int chunkSize = options.getChunkSizeBytes() == null ? chunkSizeBytes : options.getChunkSizeBytes();\n+        byte[] buffer = new byte[chunkSize];\n+        int len;\n+        try {\n+            while ((len = source.read(buffer)) != -1) {\n+                uploadStream.write(buffer, 0, len);\n+            }\n+        } catch (IOException e) {\n+            throw new MongoGridFSException(\"IO Exception when reading from the InputStream\", e);\n+        } finally {\n+            uploadStream.close();","path":"driver/src/main/com/mongodb/client/gridfs/GridFSBucketImpl.java","position":164,"original_position":159,"commit_id":"b26aa80f16e61c89e3f9a683195986eec0adbd7d","original_commit_id":"16aa4350c73641ea941ff8c94d854085d4ddd355","user":{"login":"jyemin","id":1111546,"avatar_url":"https://avatars.githubusercontent.com/u/1111546?v=3","gravatar_id":"","url":"https://api.github.com/users/jyemin","html_url":"https://github.com/jyemin","followers_url":"https://api.github.com/users/jyemin/followers","following_url":"https://api.github.com/users/jyemin/following{/other_user}","gists_url":"https://api.github.com/users/jyemin/gists{/gist_id}","starred_url":"https://api.github.com/users/jyemin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jyemin/subscriptions","organizations_url":"https://api.github.com/users/jyemin/orgs","repos_url":"https://api.github.com/users/jyemin/repos","events_url":"https://api.github.com/users/jyemin/events{/privacy}","received_events_url":"https://api.github.com/users/jyemin/received_events","type":"User","site_admin":false},"body":"No, if the finally block throws the original exception is replaced before propagation.  The original should be thrown so there needs to be a try/catch in the finally block itself, unfortunately.","created_at":"2015-08-06T15:18:27Z","updated_at":"2015-08-06T15:18:27Z","html_url":"https://github.com/rozza/mongo-java-driver/pull/100#discussion_r36426715","pull_request_url":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/comments/36426715"},"html":{"href":"https://github.com/rozza/mongo-java-driver/pull/100#discussion_r36426715"},"pull_request":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/100","id":41249869,"html_url":"https://github.com/rozza/mongo-java-driver/pull/100","diff_url":"https://github.com/rozza/mongo-java-driver/pull/100.diff","patch_url":"https://github.com/rozza/mongo-java-driver/pull/100.patch","issue_url":"https://api.github.com/repos/rozza/mongo-java-driver/issues/100","number":100,"state":"open","locked":false,"title":"GridFS 2015","user":{"login":"rozza","id":420,"avatar_url":"https://avatars.githubusercontent.com/u/420?v=3","gravatar_id":"","url":"https://api.github.com/users/rozza","html_url":"https://github.com/rozza","followers_url":"https://api.github.com/users/rozza/followers","following_url":"https://api.github.com/users/rozza/following{/other_user}","gists_url":"https://api.github.com/users/rozza/gists{/gist_id}","starred_url":"https://api.github.com/users/rozza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rozza/subscriptions","organizations_url":"https://api.github.com/users/rozza/orgs","repos_url":"https://api.github.com/users/rozza/repos","events_url":"https://api.github.com/users/rozza/events{/privacy}","received_events_url":"https://api.github.com/users/rozza/received_events","type":"User","site_admin":false},"body":"\r\nHad to update codenarc as it couldn't parse the GridFS Smoke test.\r\nAs the yml tests are being refactored I paused work on that until they have been updated.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/rozza/mongo-java-driver/100)\n<!-- Reviewable:end -->\n","created_at":"2015-07-30T15:49:54Z","updated_at":"2015-08-06T15:18:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4dd71879f02c4f11ba577e85ed761c280567f561","assignee":{"login":"rstam","id":275022,"avatar_url":"https://avatars.githubusercontent.com/u/275022?v=3","gravatar_id":"","url":"https://api.github.com/users/rstam","html_url":"https://github.com/rstam","followers_url":"https://api.github.com/users/rstam/followers","following_url":"https://api.github.com/users/rstam/following{/other_user}","gists_url":"https://api.github.com/users/rstam/gists{/gist_id}","starred_url":"https://api.github.com/users/rstam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstam/subscriptions","organizations_url":"https://api.github.com/users/rstam/orgs","repos_url":"https://api.github.com/users/rstam/repos","events_url":"https://api.github.com/users/rstam/events{/privacy}","received_events_url":"https://api.github.com/users/rstam/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/100/commits","review_comments_url":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/100/comments","review_comment_url":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rozza/mongo-java-driver/issues/100/comments","statuses_url":"https://api.github.com/repos/rozza/mongo-java-driver/statuses/b26aa80f16e61c89e3f9a683195986eec0adbd7d","head":{"label":"rozza:j1713","ref":"j1713","sha":"b26aa80f16e61c89e3f9a683195986eec0adbd7d","user":{"login":"rozza","id":420,"avatar_url":"https://avatars.githubusercontent.com/u/420?v=3","gravatar_id":"","url":"https://api.github.com/users/rozza","html_url":"https://github.com/rozza","followers_url":"https://api.github.com/users/rozza/followers","following_url":"https://api.github.com/users/rozza/following{/other_user}","gists_url":"https://api.github.com/users/rozza/gists{/gist_id}","starred_url":"https://api.github.com/users/rozza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rozza/subscriptions","organizations_url":"https://api.github.com/users/rozza/orgs","repos_url":"https://api.github.com/users/rozza/repos","events_url":"https://api.github.com/users/rozza/events{/privacy}","received_events_url":"https://api.github.com/users/rozza/received_events","type":"User","site_admin":false},"repo":{"id":10246360,"name":"mongo-java-driver","full_name":"rozza/mongo-java-driver","owner":{"login":"rozza","id":420,"avatar_url":"https://avatars.githubusercontent.com/u/420?v=3","gravatar_id":"","url":"https://api.github.com/users/rozza","html_url":"https://github.com/rozza","followers_url":"https://api.github.com/users/rozza/followers","following_url":"https://api.github.com/users/rozza/following{/other_user}","gists_url":"https://api.github.com/users/rozza/gists{/gist_id}","starred_url":"https://api.github.com/users/rozza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rozza/subscriptions","organizations_url":"https://api.github.com/users/rozza/orgs","repos_url":"https://api.github.com/users/rozza/repos","events_url":"https://api.github.com/users/rozza/events{/privacy}","received_events_url":"https://api.github.com/users/rozza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rozza/mongo-java-driver","description":"java driver for mongo","fork":true,"url":"https://api.github.com/repos/rozza/mongo-java-driver","forks_url":"https://api.github.com/repos/rozza/mongo-java-driver/forks","keys_url":"https://api.github.com/repos/rozza/mongo-java-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rozza/mongo-java-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rozza/mongo-java-driver/teams","hooks_url":"https://api.github.com/repos/rozza/mongo-java-driver/hooks","issue_events_url":"https://api.github.com/repos/rozza/mongo-java-driver/issues/events{/number}","events_url":"https://api.github.com/repos/rozza/mongo-java-driver/events","assignees_url":"https://api.github.com/repos/rozza/mongo-java-driver/assignees{/user}","branches_url":"https://api.github.com/repos/rozza/mongo-java-driver/branches{/branch}","tags_url":"https://api.github.com/repos/rozza/mongo-java-driver/tags","blobs_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rozza/mongo-java-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/rozza/mongo-java-driver/languages","stargazers_url":"https://api.github.com/repos/rozza/mongo-java-driver/stargazers","contributors_url":"https://api.github.com/repos/rozza/mongo-java-driver/contributors","subscribers_url":"https://api.github.com/repos/rozza/mongo-java-driver/subscribers","subscription_url":"https://api.github.com/repos/rozza/mongo-java-driver/subscription","commits_url":"https://api.github.com/repos/rozza/mongo-java-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/rozza/mongo-java-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/rozza/mongo-java-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/rozza/mongo-java-driver/contents/{+path}","compare_url":"https://api.github.com/repos/rozza/mongo-java-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rozza/mongo-java-driver/merges","archive_url":"https://api.github.com/repos/rozza/mongo-java-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rozza/mongo-java-driver/downloads","issues_url":"https://api.github.com/repos/rozza/mongo-java-driver/issues{/number}","pulls_url":"https://api.github.com/repos/rozza/mongo-java-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/rozza/mongo-java-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/rozza/mongo-java-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rozza/mongo-java-driver/labels{/name}","releases_url":"https://api.github.com/repos/rozza/mongo-java-driver/releases{/id}","created_at":"2013-05-23T15:06:03Z","updated_at":"2015-05-07T14:16:45Z","pushed_at":"2015-08-06T14:46:18Z","git_url":"git://github.com/rozza/mongo-java-driver.git","ssh_url":"git@github.com:rozza/mongo-java-driver.git","clone_url":"https://github.com/rozza/mongo-java-driver.git","svn_url":"https://github.com/rozza/mongo-java-driver","homepage":"","size":42166,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"rozza:master","ref":"master","sha":"48488539ec59d82aeb90328f9bb6795ab67b361b","user":{"login":"rozza","id":420,"avatar_url":"https://avatars.githubusercontent.com/u/420?v=3","gravatar_id":"","url":"https://api.github.com/users/rozza","html_url":"https://github.com/rozza","followers_url":"https://api.github.com/users/rozza/followers","following_url":"https://api.github.com/users/rozza/following{/other_user}","gists_url":"https://api.github.com/users/rozza/gists{/gist_id}","starred_url":"https://api.github.com/users/rozza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rozza/subscriptions","organizations_url":"https://api.github.com/users/rozza/orgs","repos_url":"https://api.github.com/users/rozza/repos","events_url":"https://api.github.com/users/rozza/events{/privacy}","received_events_url":"https://api.github.com/users/rozza/received_events","type":"User","site_admin":false},"repo":{"id":10246360,"name":"mongo-java-driver","full_name":"rozza/mongo-java-driver","owner":{"login":"rozza","id":420,"avatar_url":"https://avatars.githubusercontent.com/u/420?v=3","gravatar_id":"","url":"https://api.github.com/users/rozza","html_url":"https://github.com/rozza","followers_url":"https://api.github.com/users/rozza/followers","following_url":"https://api.github.com/users/rozza/following{/other_user}","gists_url":"https://api.github.com/users/rozza/gists{/gist_id}","starred_url":"https://api.github.com/users/rozza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rozza/subscriptions","organizations_url":"https://api.github.com/users/rozza/orgs","repos_url":"https://api.github.com/users/rozza/repos","events_url":"https://api.github.com/users/rozza/events{/privacy}","received_events_url":"https://api.github.com/users/rozza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rozza/mongo-java-driver","description":"java driver for mongo","fork":true,"url":"https://api.github.com/repos/rozza/mongo-java-driver","forks_url":"https://api.github.com/repos/rozza/mongo-java-driver/forks","keys_url":"https://api.github.com/repos/rozza/mongo-java-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rozza/mongo-java-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rozza/mongo-java-driver/teams","hooks_url":"https://api.github.com/repos/rozza/mongo-java-driver/hooks","issue_events_url":"https://api.github.com/repos/rozza/mongo-java-driver/issues/events{/number}","events_url":"https://api.github.com/repos/rozza/mongo-java-driver/events","assignees_url":"https://api.github.com/repos/rozza/mongo-java-driver/assignees{/user}","branches_url":"https://api.github.com/repos/rozza/mongo-java-driver/branches{/branch}","tags_url":"https://api.github.com/repos/rozza/mongo-java-driver/tags","blobs_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rozza/mongo-java-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/rozza/mongo-java-driver/languages","stargazers_url":"https://api.github.com/repos/rozza/mongo-java-driver/stargazers","contributors_url":"https://api.github.com/repos/rozza/mongo-java-driver/contributors","subscribers_url":"https://api.github.com/repos/rozza/mongo-java-driver/subscribers","subscription_url":"https://api.github.com/repos/rozza/mongo-java-driver/subscription","commits_url":"https://api.github.com/repos/rozza/mongo-java-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/rozza/mongo-java-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/rozza/mongo-java-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/rozza/mongo-java-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/rozza/mongo-java-driver/contents/{+path}","compare_url":"https://api.github.com/repos/rozza/mongo-java-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rozza/mongo-java-driver/merges","archive_url":"https://api.github.com/repos/rozza/mongo-java-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rozza/mongo-java-driver/downloads","issues_url":"https://api.github.com/repos/rozza/mongo-java-driver/issues{/number}","pulls_url":"https://api.github.com/repos/rozza/mongo-java-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/rozza/mongo-java-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/rozza/mongo-java-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rozza/mongo-java-driver/labels{/name}","releases_url":"https://api.github.com/repos/rozza/mongo-java-driver/releases{/id}","created_at":"2013-05-23T15:06:03Z","updated_at":"2015-05-07T14:16:45Z","pushed_at":"2015-08-06T14:46:18Z","git_url":"git://github.com/rozza/mongo-java-driver.git","ssh_url":"git@github.com:rozza/mongo-java-driver.git","clone_url":"https://github.com/rozza/mongo-java-driver.git","svn_url":"https://github.com/rozza/mongo-java-driver","homepage":"","size":42166,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/100"},"html":{"href":"https://github.com/rozza/mongo-java-driver/pull/100"},"issue":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/issues/100"},"comments":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/rozza/mongo-java-driver/statuses/b26aa80f16e61c89e3f9a683195986eec0adbd7d"}}}}