See gh-16575
This commit is contained in:
Johnny Lim 2019-04-16 17:45:37 +09:00 committed by Stephane Nicoll
parent dfbc787737
commit 363994515b
2 changed files with 4 additions and 5 deletions

View File

@ -6,7 +6,7 @@
2019-03-29
-----
If you need the repackage jar to have a different local name than the one defined by
If you need the repackaged jar to have a different local name than the one defined by
the <<<artifactId>>> attribute of the project, simply use the standard <<<finalName>>>
as shown in the following example:

View File

@ -116,10 +116,9 @@ public class NoUnboundElementsBindHandler extends AbstractBindHandler {
}
private boolean isOverriddenCollectionElement(ConfigurationPropertyName candidate) {
int length = candidate.getNumberOfElements();
if (candidate.isNumericIndex(length - 1)) {
ConfigurationPropertyName propertyName = candidate
.chop(candidate.getNumberOfElements() - 1);
int lastIndex = candidate.getNumberOfElements() - 1;
if (candidate.isNumericIndex(lastIndex)) {
ConfigurationPropertyName propertyName = candidate.chop(lastIndex);
return this.boundNames.contains(propertyName);
}
return false;