mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-25 10:59:03 +00:00
Fix typos
Signed-off-by: Hyunwoo Jung <hyunwoojung@kakao.com> See gh-51590
This commit is contained in:
committed by
Andy Wilkinson
parent
2a30bbc70a
commit
528c8bd1ea
+1
-1
@@ -50,7 +50,7 @@ final class NestedPath implements Path {
|
||||
|
||||
NestedPath(NestedFileSystem fileSystem, String nestedEntryName) {
|
||||
if (fileSystem == null) {
|
||||
throw new IllegalArgumentException("'filesSystem' must not be null");
|
||||
throw new IllegalArgumentException("'fileSystem' must not be null");
|
||||
}
|
||||
this.fileSystem = fileSystem;
|
||||
this.nestedEntryName = (nestedEntryName != null && !nestedEntryName.isBlank()) ? nestedEntryName : null;
|
||||
|
||||
+2
-2
@@ -697,10 +697,10 @@ public final class ZipContent implements Closeable {
|
||||
}
|
||||
|
||||
void detect(ZipCentralDirectoryFileHeaderRecord centralRecord, FileDataBlock data, long pos,
|
||||
ByteBuffer loadeBuffer) throws IOException {
|
||||
ByteBuffer loadedBuffer) throws IOException {
|
||||
if (!this.detected) {
|
||||
long filenamePos = pos + ZipCentralDirectoryFileHeaderRecord.FILE_NAME_OFFSET;
|
||||
if (centralRecord.fileNameLength() > this.buffer.capacity() && ZipString.startsWith(loadeBuffer, data,
|
||||
if (centralRecord.fileNameLength() > this.buffer.capacity() && ZipString.startsWith(loadedBuffer, data,
|
||||
filenamePos, centralRecord.fileNameLength(), META_INF) >= 0) {
|
||||
this.buffer.clear();
|
||||
data.readFully(this.buffer, filenamePos + centralRecord.fileNameLength() - this.buffer.capacity());
|
||||
|
||||
+1
-1
@@ -193,7 +193,7 @@ class NestedJarFileTests {
|
||||
|
||||
@Test
|
||||
void getEntryWhenMultiReleaseEntryReturnsEntry() throws IOException {
|
||||
File multiReleaseFile = new File(this.tempDir, "mutli.zip");
|
||||
File multiReleaseFile = new File(this.tempDir, "multi.zip");
|
||||
try (ZipContent zip = ZipContent.open(this.file.toPath(), "multi-release.jar")) {
|
||||
try (InputStream in = zip.openRawZipData().asInputStream()) {
|
||||
try (FileOutputStream out = new FileOutputStream(multiReleaseFile)) {
|
||||
|
||||
Reference in New Issue
Block a user