Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
36399451
Commit
36399451
authored
Apr 16, 2019
by
Johnny Lim
Committed by
Stephane Nicoll
Apr 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-16575
parent
dfbc7877
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
repackage-name.apt.vm
...-maven-plugin/src/site/apt/examples/repackage-name.apt.vm
+1
-1
NoUnboundElementsBindHandler.java
...properties/bind/handler/NoUnboundElementsBindHandler.java
+3
-4
No files found.
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/site/apt/examples/repackage-name.apt.vm
View file @
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 repackage
d
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:
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/handler/NoUnboundElementsBindHandler.java
View file @
36399451
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment