NIFI-13216 Replaced deprecated GzipUtils methods

- Replaced isCompressedFilename and getUncompressedFilename with the API suggested alternatives

This closes #8816

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
dan-s1 2024-05-10 21:23:03 +00:00 committed by exceptionfactory
parent c66a3cf4ff
commit 22109de2ad
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -167,8 +167,8 @@ public class TransferDebugOperationHandler implements C2OperationHandler {
Path tempDirectory = createTempDirectory(operationId);
String fileName = bundleFile.getFileName().toString();
Path preparedFile = GzipUtils.isCompressedFilename(fileName)
? handleGzipFile(bundleFile, Paths.get(tempDirectory.toAbsolutePath().toString(), GzipUtils.getUncompressedFilename(fileName)))
Path preparedFile = GzipUtils.isCompressedFileName(fileName)
? handleGzipFile(bundleFile, Paths.get(tempDirectory.toAbsolutePath().toString(), GzipUtils.getUncompressedFileName(fileName)))
: handleUncompressedFile(bundleFile, Paths.get(tempDirectory.toAbsolutePath().toString(), fileName));
preparedFiles.add(preparedFile);
}