Avoid ambiguous property warning for methods with multiple parameters
Issue: SPR-13349
This commit is contained in:
parent
27899abcb6
commit
05a16a1bfa
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2014 the original author or authors.
|
* Copyright 2002-2015 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -90,7 +90,8 @@ final class GenericTypeAwarePropertyDescriptor extends PropertyDescriptor {
|
||||||
Set<Method> ambiguousCandidates = new HashSet<Method>();
|
Set<Method> ambiguousCandidates = new HashSet<Method>();
|
||||||
for (Method method : beanClass.getMethods()) {
|
for (Method method : beanClass.getMethods()) {
|
||||||
if (method.getName().equals(writeMethodToUse.getName()) &&
|
if (method.getName().equals(writeMethodToUse.getName()) &&
|
||||||
!method.equals(writeMethodToUse) && !method.isBridge()) {
|
!method.equals(writeMethodToUse) && !method.isBridge() &&
|
||||||
|
method.getParameterTypes().length == writeMethodToUse.getParameterTypes().length) {
|
||||||
ambiguousCandidates.add(method);
|
ambiguousCandidates.add(method);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue