From ec12d51f30910cae0e5bc28fe13eed87034b11f3 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 21 Sep 2021 14:00:08 -0700 Subject: [PATCH] Polish --- .../org/springframework/boot/loader/jar/JarFileEntries.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFileEntries.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFileEntries.java index ac27210124..31c65fe76d 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFileEntries.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarFileEntries.java @@ -120,7 +120,7 @@ class JarFileEntries implements CentralDirectoryVisitor, Iterable { int maxSize = endRecord.getNumberOfRecords(); this.centralDirectoryData = centralDirectoryData; this.hashCodes = new int[maxSize]; - this.centralDirectoryOffsets = Offsets.get(endRecord); + this.centralDirectoryOffsets = Offsets.from(endRecord); this.positions = new int[maxSize]; } @@ -440,7 +440,7 @@ class JarFileEntries implements CentralDirectoryVisitor, Iterable { void swap(int i, int j); - static Offsets get(CentralDirectoryEndRecord endRecord) { + static Offsets from(CentralDirectoryEndRecord endRecord) { int size = endRecord.getNumberOfRecords(); return endRecord.isZip64() ? new Zip64Offsets(size) : new ZipOffsets(size); }