Commit caed8e86 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #16575 from izeye

* pr/16575:
  Polish
parents dfbc7877 36399451
......@@ -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:
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment