Skip to content

Commit 8356762

Browse files
committed
Polishing
1 parent c526fc2 commit 8356762

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

spring-jdbc/src/main/java/org/springframework/jdbc/core/SingleColumnRowMapper.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -219,6 +219,7 @@ else if (this.conversionService != null && this.conversionService.canConvert(val
219219
* (with the required type specified only once).
220220
* @param requiredType the type that each result object is expected to match
221221
* @since 4.1
222+
* @see #newInstance(Class, ConversionService)
222223
*/
223224
public static <T> SingleColumnRowMapper<T> newInstance(Class<T> requiredType) {
224225
return new SingleColumnRowMapper<>(requiredType);
@@ -228,10 +229,15 @@ public static <T> SingleColumnRowMapper<T> newInstance(Class<T> requiredType) {
228229
* Static factory method to create a new {@code SingleColumnRowMapper}
229230
* (with the required type specified only once).
230231
* @param requiredType the type that each result object is expected to match
231-
* @param conversionService the {@link ConversionService} for converting a fetched value
232+
* @param conversionService the {@link ConversionService} for converting a
233+
* fetched value, or {@code null} for none
232234
* @since 5.0.4
235+
* @see #newInstance(Class)
236+
* @see #setConversionService
233237
*/
234-
public static <T> SingleColumnRowMapper<T> newInstance(Class<T> requiredType, @Nullable ConversionService conversionService) {
238+
public static <T> SingleColumnRowMapper<T> newInstance(
239+
Class<T> requiredType, @Nullable ConversionService conversionService) {
240+
235241
SingleColumnRowMapper<T> rowMapper = newInstance(requiredType);
236242
rowMapper.setConversionService(conversionService);
237243
return rowMapper;

0 commit comments

Comments
 (0)