-
Notifications
You must be signed in to change notification settings - Fork 1.5k
deps: update org.ow2.asm:asm to version 9.8 for java 25 support
#4418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,9 +71,9 @@ public static void extract(Path source, Path destination, boolean enableReproduc | |
| List<TarArchiveEntry> entries = new ArrayList<>(); | ||
| try (InputStream in = new BufferedInputStream(Files.newInputStream(source)); | ||
| TarArchiveInputStream tarArchiveInputStream = new TarArchiveInputStream(in)) { | ||
| for (TarArchiveEntry entry = tarArchiveInputStream.getNextTarEntry(); | ||
| for (TarArchiveEntry entry = tarArchiveInputStream.getNextEntry(); | ||
| entry != null; | ||
| entry = tarArchiveInputStream.getNextTarEntry()) { | ||
| entry = tarArchiveInputStream.getNextEntry()) { | ||
|
Comment on lines
+74
to
+76
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For better readability and consistency with other parts of the codebase (e.g., TarArchiveEntry entry;
while ((entry = tarArchiveInputStream.getNextEntry()) != null) {
Comment on lines
+74
to
+76
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While this Consider refactoring this loop to: TarArchiveEntry entry;
while ((entry = tarArchiveInputStream.getNextEntry()) != null) {
// ... loop body
} |
||
| entries.add(entry); | ||
| Path entryPath = destination.resolve(entry.getName()); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other parts of the codebase and for better readability, this
forloop can be converted to awhileloop. Thewhile ((entry = ...getNextEntry()) != null)pattern is more idiomatic for iterating through archive entries.