ppkarwasz opened a new pull request, #712:
URL: https://github.com/apache/commons-compress/pull/712

   `TarUtils` already had a private constructor and was only used within the 
`o.a.c.compress.archivers.tar` package. This PR makes the class explicitly 
final and simplifies its internal API:
   
   * Mark `TarUtils` as `final`.
   * Change `protected` methods to package-private (they were never usable 
outside the package due to the private constructor).
   * Remove deprecated non-`public` methods.
   * Simplify `parsePaxHeaders`:
   
     * Require a non-negative `headerSize`. The special value `-1` 
(“unlimited”) was only used in tests.
     * Update tests to supply a valid `headerSize`.
     * Standardize error handling for invalid PAX 0.0 sparse records: all 
parsing errors now throw `ArchiveException` (previously one case threw 
`IOException`).
   
   A changelog entry is included even though these are internal changes, to 
give users a reference point in case any unintended side effects arise.
   
   This change is linked with #710, which needs to add a parameter to the 
currently protected `parsePaxHeaders` method.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to