Skip to content

Commit edc154c

Browse files
committed
Merge pull request #20874 from dreis2211
* pr/20874: Polish LayersIndex Closes gh-20874
2 parents ba4eec8 + ae15a3d commit edc154c

File tree

1 file changed

+4
-4
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/LayersIndex.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/**
3535
* Index describing the layer to which each entry in a jar belongs. Index files are simple
3636
* text files that should be read from top to bottom. Each file defines the layers and
37-
* their content. Layers names are written as quoted strings prefixed by a dash space
37+
* their content. Layer names are written as quoted strings prefixed by a dash space
3838
* ({@code "- "}) and with a colon ({@code ":"}) suffix. Layer content is either a file or
3939
* folder name written as a quoted string prefixed by space space dash space
4040
* ({@code " - "}). A folder name ends with {@code /}, a file name does not. When a
@@ -107,7 +107,7 @@ public void writeTo(OutputStream out) throws IOException {
107107
}
108108

109109
/**
110-
* A node within the index represeting a single path segment.
110+
* A node within the index representing a single path segment.
111111
*/
112112
private static class Node {
113113

@@ -122,7 +122,7 @@ private static class Node {
122122
this.layers = new HashSet<>();
123123
}
124124

125-
Node(String name, Layer layer, Node parent) {
125+
Node(String name, Layer layer) {
126126
this.name = name;
127127
this.layers = new HashSet<>(Collections.singleton(layer));
128128
}
@@ -135,7 +135,7 @@ Node updateOrAddNode(String segment, boolean isFolder, Layer layer) {
135135
return child;
136136
}
137137
}
138-
Node child = new Node(name, layer, this);
138+
Node child = new Node(name, layer);
139139
this.children.add(child);
140140
return child;
141141
}

0 commit comments

Comments
 (0)