[#6730] Typo in Cursor.fetchOne() Javadoc's deprecation hint

This commit is contained in:
lukaseder 2017-10-20 09:35:12 +02:00
parent 4177e25c78
commit 02700093d0
2 changed files with 5 additions and 1 deletions

View File

@ -271,7 +271,7 @@ public interface Cursor<R extends Record> extends Iterable<R> , AutoCloseable {
<Z extends Record> Result<Z> fetchInto(Table<Z> table) throws DataAccessException, MappingException;
/**
* @deprecated - 3.10 - [#6363] - Use {@link #fetchOne()} instead.
* @deprecated - 3.10 - [#6363] - Use {@link #fetchNext()} instead.
*/
@Deprecated
R fetchOne() throws DataAccessException;

View File

@ -335,21 +335,25 @@ final class CursorImpl<R extends Record> implements Cursor<R> {
@Override
@Deprecated
public Optional<R> fetchOptional() {
return fetchNextOptional();
}
@Override
@Deprecated
public <E> Optional<E> fetchOptional(RecordMapper<? super R, E> mapper) {
return fetchNextOptional(mapper);
}
@Override
@Deprecated
public <E> Optional<E> fetchOptionalInto(Class<? extends E> type) {
return fetchNextOptionalInto(type);
}
@Override
@Deprecated
public <Z extends Record> Optional<Z> fetchOptionalInto(Table<Z> table) {
return fetchNextOptionalInto(table);
}