Skip to content

Commit 6770523

Browse files
Fixed copy/paste errors for getBoolean method
1 parent 64e9f8a commit 6770523

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bson/src/main/org/bson/Document.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ public String getString(final Object key) {
201201
* Gets the value of the given key as a Boolean.
202202
*
203203
* @param key the key
204-
* @return the value as a double, which may be null
205-
* @throws java.lang.ClassCastException if the value is not an double
204+
* @return the value as a Boolean, which may be null
205+
* @throws java.lang.ClassCastException if the value is not an boolean
206206
*/
207207
public Boolean getBoolean(final Object key) {
208208
return (Boolean) get(key);
@@ -213,8 +213,8 @@ public Boolean getBoolean(final Object key) {
213213
*
214214
* @param key the key
215215
* @param defaultValue what to return if the value is null
216-
* @return the value as a double, which may be null
217-
* @throws java.lang.ClassCastException if the value is not an double
216+
* @return the value as a primitive boolean
217+
* @throws java.lang.ClassCastException if the value is not a boolean
218218
*/
219219
public boolean getBoolean(final Object key, final boolean defaultValue) {
220220
Object value = get(key);

0 commit comments

Comments
 (0)