@@ -1091,7 +1091,7 @@ public static final ZonedDateTime toZonedDateTime(BsonValue value, ZoneId zone)
10911091 * system default time-zone.
10921092 *
10931093 * @param value the {@code BsonValue}
1094- * @return a {@code OffsetDateTime}
1094+ * @return an {@code OffsetDateTime}
10951095 */
10961096 public static final OffsetDateTime toOffsetDateTime (BsonValue value ) {
10971097 return toOffsetDateTime (value , ZoneId .systemDefault ());
@@ -2138,7 +2138,7 @@ public static final ArrayNode toArrayNode(BsonArray array) {
21382138 * Convert the specified {@link BsonDocument} to {@link Map} data.
21392139 *
21402140 * @param document the {@code BsonDocument}
2141- * @return an {@code Map<String, Object>}
2141+ * @return a {@code Map<String, Object>}
21422142 * @since 2.1
21432143 */
21442144 public static final Map <String , Object > toMap (BsonDocument document ) {
@@ -2183,7 +2183,7 @@ public static final Map<String, Object> toMap(BsonDocument document) {
21832183 * Convert the specified {@link BsonArray} to {@link List}.
21842184 *
21852185 * @param array the {@code BsonArray}
2186- * @return an {@code List<Object>}
2186+ * @return a {@code List<Object>}
21872187 * @since 2.1
21882188 */
21892189 public static final List <Object > toList (BsonArray array ) {
@@ -2657,7 +2657,8 @@ public static final Optional<double[]> doubleArrayValue(JSONObject jsonObject, S
26572657 * @param jsonObject the source {@link JSONObject}
26582658 * @param key the key
26592659 * @param mapper the mapper
2660- * @return an {@code Optional<double[]>}
2660+ * @param <T> the type of the return element
2661+ * @return an {@code Optional<List<T>>}
26612662 * @since 2.2
26622663 */
26632664 public static final <T > Optional <List <T >> listValue (JSONObject jsonObject , String key , Function <Object , T > mapper ) {
@@ -2759,7 +2760,7 @@ public static final BsonArray toBsonArray(JSONArray jsonArray) {
27592760 * Convert the specified {@link BsonDocument} to {@link JSONObject}.
27602761 *
27612762 * @param document the {@code BsonDocument}
2762- * @return an {@code JSONObject}
2763+ * @return a {@code JSONObject}
27632764 * @since 2.2
27642765 */
27652766 public static final JSONObject toJSONObject (BsonDocument document ) {
@@ -2806,7 +2807,7 @@ public static final JSONObject toJSONObject(BsonDocument document) {
28062807 * Convert the specified {@link BsonArray} to {@link JSONArray}.
28072808 *
28082809 * @param array the {@code BsonArray}
2809- * @return an {@code JSONArray}
2810+ * @return a {@code JSONArray}
28102811 * @since 2.2
28112812 */
28122813 public static final JSONArray toJSONArray (BsonArray array ) {
0 commit comments