We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f8706 commit 9ff0d71Copy full SHA for 9ff0d71
spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
@@ -254,14 +254,13 @@ else if (ctors.length == 0){
254
return (Constructor<T>) ctors[0];
255
}
256
257
- else {
258
- // Several public constructors -> let's take the default constructor
259
- try {
260
- return clazz.getDeclaredConstructor();
261
- }
262
- catch (NoSuchMethodException ex) {
263
- // Giving up...
264
+
+ // Several constructors -> let's try to take the default constructor
+ try {
+ return clazz.getDeclaredConstructor();
+ }
+ catch (NoSuchMethodException ex) {
+ // Giving up...
265
266
267
// No unique constructor at all
0 commit comments