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
a79e49f1
Commit
a79e49f1
authored
Apr 17, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
b710dc71
caed8e86
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 @
a79e49f1
...
@@ -6,7 +6,7 @@
...
@@ -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 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>>>
the <<<artifactId>>> attribute of the project, simply use the standard <<<finalName>>>
as shown in the following example:
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 @
a79e49f1
...
@@ -116,10 +116,9 @@ public class NoUnboundElementsBindHandler extends AbstractBindHandler {
...
@@ -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
;
...
...
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