Skip to content

Commit 97f35ab

Browse files
committed
Fix typos in Row.get(…)
Exception clause now reflects how it should actually behave. [resolves #182]
1 parent 1742467 commit 97f35ab

File tree

1 file changed

+8
-10
lines changed
  • r2dbc-spi/src/main/java/io/r2dbc/spi

1 file changed

+8
-10
lines changed

r2dbc-spi/src/main/java/io/r2dbc/spi/Row.java

+8-10
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,25 @@
4040
public interface Row {
4141

4242
/**
43-
* Returns the value for a column in this row using the default type mapping. The default implementation of this method calls {@link #get(int, Class)} passing {@link Object} as the type in
44-
* order to allow the implementation to make the loosest possible match.
43+
* Returns the value for a column in this row using the default type mapping. The default implementation of this method calls {@link #get(int, Class)} passing {@link Object} as the type
44+
* to allow the implementation to make the loosest possible match.
4545
*
46-
* @param index the index of the column starting at 0
46+
* @param index the index of the column starting at {@code 0}
4747
* @return the value for a column in this row. Value can be {@code null}.
48-
* @throws IllegalArgumentException if {@code index} or {@code type} is {@code null}
4948
*/
5049
@Nullable
5150
default Object get(int index) {
5251
return get(index, Object.class);
5352
}
5453

55-
5654
/**
57-
* Returns the value for a column in this row.
55+
* Returns the value for a column in this row. Use {@link Object} to allow the implementation to make the loosest possible match.
5856
*
59-
* @param index the index of the column starting at 0
57+
* @param index the index of the column starting at {@code 0}
6058
* @param type the type of item to return. This type must be assignable to, and allows for variance.
6159
* @param <T> the type of the item being returned.
6260
* @return the value for a column in this row. Value can be {@code null}.
63-
* @throws IllegalArgumentException if {@code index} or {@code type} is {@code null}
61+
* @throws IllegalArgumentException if {@code type} is {@code null}
6462
*/
6563
@Nullable
6664
<T> T get(int index, Class<T> type);
@@ -71,15 +69,15 @@ default Object get(int index) {
7169
*
7270
* @param name the name of the column
7371
* @return the value for a column in this row. Value can be {@code null}.
74-
* @throws IllegalArgumentException if {@code name} or {@code type} is {@code null}
72+
* @throws IllegalArgumentException if {@code name} is {@code null}
7573
*/
7674
@Nullable
7775
default Object get(String name) {
7876
return get(name, Object.class);
7977
}
8078

8179
/**
82-
* Returns the value for a column in this row.
80+
* Returns the value for a column in this row. Use {@link Object} to allow the implementation to make the loosest possible match.
8381
*
8482
* @param name the name of the column
8583
* @param type the type of item to return. This type must be assignable to, and allows for variance.

0 commit comments

Comments
 (0)