This commit is contained in:
Stephane Nicoll
2019-10-29 09:02:25 +01:00
parent 5e813f60b9
commit d6d32ec01d
2 changed files with 5 additions and 5 deletions

View File

@@ -158,12 +158,12 @@ class PropertyDescriptorResolver {
private ExecutableElement findBoundConstructor() {
ExecutableElement boundConstructor = null;
for (ExecutableElement canidate : this.constructors) {
if (!canidate.getParameters().isEmpty()) {
for (ExecutableElement candidate : this.constructors) {
if (!candidate.getParameters().isEmpty()) {
if (boundConstructor != null) {
return null;
}
boundConstructor = canidate;
boundConstructor = candidate;
}
}
return boundConstructor;