mirror of https://github.com/apache/nifi.git
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:
parent
c66a3cf4ff
commit
22109de2ad
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue