File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spring-core/src/main/java/org/springframework/core/convert Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2016 the original author or authors.
2
+ * Copyright 2002-2017 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.
@@ -143,10 +143,11 @@ private String resolveName() {
143
143
return StringUtils .uncapitalize (this .readMethod .getName ().substring (index ));
144
144
}
145
145
else {
146
- int index = this .writeMethod .getName ().indexOf ("set" ) + 3 ;
146
+ int index = this .writeMethod .getName ().indexOf ("set" );
147
147
if (index == -1 ) {
148
148
throw new IllegalArgumentException ("Not a setter method" );
149
149
}
150
+ index += 3 ;
150
151
return StringUtils .uncapitalize (this .writeMethod .getName ().substring (index ));
151
152
}
152
153
}
You can’t perform that action at this time.
0 commit comments