Skip to content

Commit 3639945

Browse files
izeyesnicoll
authored andcommitted
Polish
See gh-16575
1 parent dfbc787 commit 3639945

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/repackage-name.apt.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
2019-03-29
77
-----
88

9-
If you need the repackage jar to have a different local name than the one defined by
9+
If you need the repackaged jar to have a different local name than the one defined by
1010
the <<<artifactId>>> attribute of the project, simply use the standard <<<finalName>>>
1111
as shown in the following example:
1212

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/handler/NoUnboundElementsBindHandler.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,9 @@ private boolean isUnbound(ConfigurationPropertyName name,
116116
}
117117

118118
private boolean isOverriddenCollectionElement(ConfigurationPropertyName candidate) {
119-
int length = candidate.getNumberOfElements();
120-
if (candidate.isNumericIndex(length - 1)) {
121-
ConfigurationPropertyName propertyName = candidate
122-
.chop(candidate.getNumberOfElements() - 1);
119+
int lastIndex = candidate.getNumberOfElements() - 1;
120+
if (candidate.isNumericIndex(lastIndex)) {
121+
ConfigurationPropertyName propertyName = candidate.chop(lastIndex);
123122
return this.boundNames.contains(propertyName);
124123
}
125124
return false;

0 commit comments

Comments
 (0)