Fix typos

Signed-off-by: Hyunwoo Jung <hyunwoojung@kakao.com>

See gh-51590
This commit is contained in:
Hyunwoo Jung
2026-09-07 11:53:30 +01:00
committed by Andy Wilkinson
parent 2a30bbc70a
commit 528c8bd1ea
16 changed files with 32 additions and 32 deletions
@@ -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;
@@ -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());
@@ -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)) {