Skip to content

Commit 173e654

Browse files
committed
Merge branch '3.1.x'
Closes gh-38168
2 parents 8f2ec22 + 40ce618 commit 173e654

File tree

15 files changed

+23
-23
lines changed

15 files changed

+23
-23
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ void customNameIsReflectedInProperties() {
100100
}
101101

102102
@Test
103-
void nameCanBeExludedRemovedFromProperties() {
103+
void nameCanBeExcludedFromProperties() {
104104
BuildInfo task = createTask(createProject("test"));
105105
task.getExcludes().add("name");
106106
assertThat(buildInfoProperties(task)).doesNotContainKey("build.name");

spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/jar/Canonicalizer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static String canonicalizeAfter(String path, int pos) {
4141

4242
static String canonicalize(String path) {
4343
path = removeEmbeddedSlashDotDotSlash(path);
44-
path = removedEmbdeddedSlashDotSlash(path);
44+
path = removeEmbeddedSlashDotSlash(path);
4545
path = removeTrailingSlashDotDot(path);
4646
path = removeTrailingSlashDot(path);
4747
return path;
@@ -57,7 +57,7 @@ private static String removeEmbeddedSlashDotDotSlash(String path) {
5757
return path;
5858
}
5959

60-
private static String removedEmbdeddedSlashDotSlash(String path) {
60+
private static String removeEmbeddedSlashDotSlash(String path) {
6161
int index;
6262
while ((index = path.indexOf("/./")) >= 0) {
6363
String before = path.substring(0, index);

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/NestedJarFileTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void sizeReturnsSize() throws IOException {
242242
}
243243

244244
@Test
245-
void sizeWhenClosedThowsException() throws Exception {
245+
void sizeWhenClosedThrowsException() throws Exception {
246246
try (NestedJarFile jar = new NestedJarFile(this.file)) {
247247
jar.close();
248248
assertThatIllegalStateException().isThrownBy(() -> jar.size()).withMessage("Zip file closed");
@@ -347,7 +347,7 @@ void closeAllowsFileToBeDeleted() throws Exception {
347347
}
348348

349349
@Test
350-
void streamStreamsEnties() throws IOException {
350+
void streamStreamsEntries() throws IOException {
351351
try (NestedJarFile jar = new NestedJarFile(this.file, "multi-release.jar")) {
352352
assertThat(jar.stream().map((entry) -> entry.getName() + ":" + entry.getRealName())).containsExactly(
353353
"META-INF/:META-INF/", "META-INF/MANIFEST.MF:META-INF/MANIFEST.MF",

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/SecurityInfoTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void getWhenNoSignatureFileReturnsNone() throws Exception {
5555
}
5656

5757
@Test
58-
void getWhenHasSignatureFileButNoSecuityMaterialReturnsNone() throws Exception {
58+
void getWhenHasSignatureFileButNoSecurityMaterialReturnsNone() throws Exception {
5959
File file = new File(this.temp, "test.jar");
6060
TestJar.create(file, false, true);
6161
try (ZipContent content = ZipContent.open(file.toPath())) {

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/launch/JarFileArchiveTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void getManifestReturnsManifest() throws Exception {
8080
}
8181

8282
@Test
83-
void getClassPathUrlsWhenNoPredicartesReturnsUrls() throws Exception {
83+
void getClassPathUrlsWhenNoPredicatesReturnsUrls() throws Exception {
8484
Set<URL> urls = this.archive.getClassPathUrls(Archive.ALL_ENTRIES);
8585
URL[] expected = TestJar.expectedEntries()
8686
.stream()

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/net/protocol/jar/CanonicalizerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ void canonicalizeAfterOnlyChangesAfterPos() {
3535
}
3636

3737
@Test
38-
void canonicalizeWhenHasEmbdeddSlashDotDotSlash() {
38+
void canonicalizeWhenHasEmbeddedSlashDotDotSlash() {
3939
assertThat(Canonicalizer.canonicalize("/foo/../bar/bif/bam/../../baz")).isEqualTo("/bar/baz");
4040
}
4141

4242
@Test
43-
void canonicalizeWhenHasEmbdeddSlashDotSlash() {
43+
void canonicalizeWhenHasEmbeddedSlashDotSlash() {
4444
assertThat(Canonicalizer.canonicalize("/foo/./bar/bif/bam/././baz")).isEqualTo("/foo/bar/bif/bam/baz");
4545
}
4646

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/net/protocol/jar/JarUrlConnectionTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ void getInputStreamWhenOptimizedWithoutReadAndHasCachedJarWithEntryReturnsEmptyI
255255
}
256256

257257
@Test
258-
void getInputStreamWhenNoEntryAndOptimzedThrowsException() throws Exception {
258+
void getInputStreamWhenNoEntryAndOptimizedThrowsException() throws Exception {
259259
JarUrlConnection setupConnection = JarUrlConnection.open(JarUrl.create(this.file, "nested.jar"));
260260
setupConnection.connect();
261261
assertThat(JarUrlConnection.jarFiles.getCached(setupConnection.getJarFileURL())).isNotNull();
@@ -266,7 +266,7 @@ void getInputStreamWhenNoEntryAndOptimzedThrowsException() throws Exception {
266266
}
267267

268268
@Test
269-
void getInputStreamWhenNoEntryAndNotOptimzedThrowsException() throws Exception {
269+
void getInputStreamWhenNoEntryAndNotOptimizedThrowsException() throws Exception {
270270
JarUrlConnection connection = JarUrlConnection.open(JarUrl.create(this.file, "nested.jar", "missing.dat"));
271271
assertThatExceptionOfType(FileNotFoundException.class).isThrownBy(connection::getInputStream)
272272
.withMessageContaining("JAR entry missing.dat not found in");
@@ -475,7 +475,7 @@ void connectWhenAddedToCacheReconnects() throws IOException {
475475
}
476476

477477
@Test
478-
void openWhenNestedAndInCachedWithoutEntryAndOptimzationsEnabledReturnsNoFoundConnection() throws Exception {
478+
void openWhenNestedAndInCachedWithoutEntryAndOptimizationsEnabledReturnsNoFoundConnection() throws Exception {
479479
JarUrlConnection setupConnection = JarUrlConnection.open(JarUrl.create(this.file, "nested.jar"));
480480
setupConnection.connect();
481481
assertThat(JarUrlConnection.jarFiles.getCached(setupConnection.getJarFileURL())).isNotNull();

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/net/protocol/jar/UrlJarManifestTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void getAlwaysReturnsDeepCopy() throws Exception {
5858
}
5959

6060
@Test
61-
void getEntrtyAttributesWhenSuppliedManifestIsNullReturnsNull() throws Exception {
61+
void getEntryAttributesWhenSuppliedManifestIsNullReturnsNull() throws Exception {
6262
UrlJarManifest urlJarManifest = new UrlJarManifest(() -> null);
6363
assertThat(urlJarManifest.getEntryAttributes(new JarEntry("test"))).isNull();
6464
}

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/net/protocol/nested/NestedLocationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void fromUrlWhenNoPathThrowsException() {
8282
}
8383

8484
@Test
85-
void fromUrlWhenNoSeparatorThrowsExceptiuon() {
85+
void fromUrlWhenNoSeparatorThrowsException() {
8686
assertThatIllegalArgumentException()
8787
.isThrownBy(() -> NestedLocation.fromUrl(new URL("nested:test.jar!nested.jar")))
8888
.withMessageContaining("'path' must contain '/!'");
@@ -110,7 +110,7 @@ void fromUriWhenNotNestedProtocolThrowsException() {
110110
}
111111

112112
@Test
113-
void fromUriWhenNoSeparatorThrowsExceptiuon() {
113+
void fromUriWhenNoSeparatorThrowsException() {
114114
assertThatIllegalArgumentException()
115115
.isThrownBy(() -> NestedLocation.fromUri(new URI("nested:test.jar!nested.jar")))
116116
.withMessageContaining("'path' must contain '/!'");

spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/nio/file/NestedByteChannelTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void setup() throws Exception {
6565
}
6666

6767
@AfterEach
68-
void cleanuo() throws Exception {
68+
void cleanup() throws Exception {
6969
this.channel.close();
7070
}
7171

0 commit comments

Comments
 (0)