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.
@@ -219,6 +219,7 @@ else if (this.conversionService != null && this.conversionService.canConvert(val
219
219
* (with the required type specified only once).
220
220
* @param requiredType the type that each result object is expected to match
221
221
* @since 4.1
222
+ * @see #newInstance(Class, ConversionService)
222
223
*/
223
224
public static <T > SingleColumnRowMapper <T > newInstance (Class <T > requiredType ) {
224
225
return new SingleColumnRowMapper <>(requiredType );
@@ -228,10 +229,15 @@ public static <T> SingleColumnRowMapper<T> newInstance(Class<T> requiredType) {
228
229
* Static factory method to create a new {@code SingleColumnRowMapper}
229
230
* (with the required type specified only once).
230
231
* @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
232
234
* @since 5.0.4
235
+ * @see #newInstance(Class)
236
+ * @see #setConversionService
233
237
*/
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
+
235
241
SingleColumnRowMapper <T > rowMapper = newInstance (requiredType );
236
242
rowMapper .setConversionService (conversionService );
237
243
return rowMapper ;
0 commit comments