See gh-16575
pull/16606/head
Johnny Lim 6 years ago committed by Stephane Nicoll
parent dfbc787737
commit 363994515b

@ -6,7 +6,7 @@
2019-03-29 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>>> the <<<artifactId>>> attribute of the project, simply use the standard <<<finalName>>>
as shown in the following example: as shown in the following example:

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

Loading…
Cancel
Save