File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -281,17 +281,17 @@ public String toString() {
281
281
}
282
282
283
283
Method findSetter (Class <?> type ) {
284
- return extracted ("set" , type , String .class );
284
+ return findMethod ("set" , type , String .class );
285
285
}
286
286
287
287
Method findGetter (Class <?> type ) {
288
- return extracted ("get" , type );
288
+ return findMethod ("get" , type );
289
289
}
290
290
291
- private Method extracted (String prefix , Class <?> type , Class <?>... paramTypes ) {
292
- for (String candidate : this .names ) {
293
- Method method = ReflectionUtils . findMethod ( type , prefix + StringUtils .capitalize (candidate ),
294
- paramTypes );
291
+ private Method findMethod (String prefix , Class <?> type , Class <?>... paramTypes ) {
292
+ for (String name : this .names ) {
293
+ String candidate = prefix + StringUtils .capitalize (name );
294
+ Method method = ReflectionUtils . findMethod ( type , candidate , paramTypes );
295
295
if (method != null ) {
296
296
return method ;
297
297
}
You can’t perform that action at this time.
0 commit comments