1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* 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
220
220
* (with the required type specified only once).
221
221
* @param requiredType the type that each result object is expected to match
222
222
* @since 4.1
223
+ * @see #newInstance(Class, ConversionService)
223
224
*/
224
225
public static <T > SingleColumnRowMapper <T > newInstance (Class <T > requiredType ) {
225
226
return new SingleColumnRowMapper <>(requiredType );
@@ -229,10 +230,15 @@ public static <T> SingleColumnRowMapper<T> newInstance(Class<T> requiredType) {
229
230
* Static factory method to create a new {@code SingleColumnRowMapper}
230
231
* (with the required type specified only once).
231
232
* @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
233
235
* @since 5.0.4
236
+ * @see #newInstance(Class)
237
+ * @see #setConversionService
234
238
*/
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
+
236
242
SingleColumnRowMapper <T > rowMapper = newInstance (requiredType );
237
243
rowMapper .setConversionService (conversionService );
238
244
return rowMapper ;
0 commit comments