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
edc154c4
Commit
edc154c4
authored
Apr 08, 2020
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20874 from dreis2211
* pr/20874: Polish LayersIndex Closes gh-20874
parents
ba4eec87
ae15a3d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
LayersIndex.java
...va/org/springframework/boot/loader/tools/LayersIndex.java
+4
-4
No files found.
spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/LayersIndex.java
View file @
edc154c4
...
...
@@ -34,7 +34,7 @@ import org.springframework.util.MultiValueMap;
/**
* Index describing the layer to which each entry in a jar belongs. Index files are simple
* text files that should be read from top to bottom. Each file defines the layers and
* their content. Layer
s
names are written as quoted strings prefixed by a dash space
* their content. Layer names are written as quoted strings prefixed by a dash space
* ({@code "- "}) and with a colon ({@code ":"}) suffix. Layer content is either a file or
* folder name written as a quoted string prefixed by space space dash space
* ({@code " - "}). A folder name ends with {@code /}, a file name does not. When a
...
...
@@ -107,7 +107,7 @@ public class LayersIndex {
}
/**
* A node within the index represeting a single path segment.
* A node within the index represe
n
ting a single path segment.
*/
private
static
class
Node
{
...
...
@@ -122,7 +122,7 @@ public class LayersIndex {
this
.
layers
=
new
HashSet
<>();
}
Node
(
String
name
,
Layer
layer
,
Node
parent
)
{
Node
(
String
name
,
Layer
layer
)
{
this
.
name
=
name
;
this
.
layers
=
new
HashSet
<>(
Collections
.
singleton
(
layer
));
}
...
...
@@ -135,7 +135,7 @@ public class LayersIndex {
return
child
;
}
}
Node
child
=
new
Node
(
name
,
layer
,
this
);
Node
child
=
new
Node
(
name
,
layer
);
this
.
children
.
add
(
child
);
return
child
;
}
...
...
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