Skip to content

Commit 32a8b9b

Browse files
committed
Polishing
1 parent 97cad6c commit 32a8b9b

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.
@@ -220,6 +220,7 @@ else if (this.conversionService != null && this.conversionService.canConvert(val
220220
* (with the required type specified only once).
221221
* @param requiredType the type that each result object is expected to match
222222
* @since 4.1
223+
* @see #newInstance(Class, ConversionService)
223224
*/
224225
public static <T> SingleColumnRowMapper<T> newInstance(Class<T> requiredType) {
225226
return new SingleColumnRowMapper<>(requiredType);
@@ -229,10 +230,15 @@ public static <T> SingleColumnRowMapper<T> newInstance(Class<T> requiredType) {
229230
* Static factory method to create a new {@code SingleColumnRowMapper}
230231
* (with the required type specified only once).
231232
* @param requiredType the type that each result object is expected to match
232-
* @param conversionService the {@link ConversionService} for converting a fetched value
233+
* @param conversionService the {@link ConversionService} for converting a
234+
* fetched value, or {@code null} for none
233235
* @since 5.0.4
236+
* @see #newInstance(Class)
237+
* @see #setConversionService
234238
*/
235-
public static <T> SingleColumnRowMapper<T> newInstance(Class<T> requiredType, @Nullable ConversionService conversionService) {
239+
public static <T> SingleColumnRowMapper<T> newInstance(
240+
Class<T> requiredType, @Nullable ConversionService conversionService) {
241+
236242
SingleColumnRowMapper<T> rowMapper = newInstance(requiredType);
237243
rowMapper.setConversionService(conversionService);
238244
return rowMapper;

0 commit comments

Comments
 (0)