@@ -401,7 +401,7 @@ private FlowFile createOutFlowFile() throws SevenZipException {
401
401
402
402
// Step two: Fill in the Filename/Path/Absolute Path
403
403
// TODO: convert tgz -> tar, taz -> tar, tbz2 -> tar, etc IFF stringProperty is null or empty.
404
- String stringProperty = ( String ) inArchive .getProperty (index , PropID .PATH );
404
+ String stringProperty = inArchive .getStringProperty (index , PropID .PATH );
405
405
final File file = new File (
406
406
!(stringProperty == null || stringProperty .isEmpty ())
407
407
? stringProperty
@@ -419,11 +419,11 @@ private FlowFile createOutFlowFile() throws SevenZipException {
419
419
attributes .put (CoreAttributes .ABSOLUTE_PATH .key (), absPathString );
420
420
421
421
// Step three: USER, GROUP, Dates and Times
422
- stringProperty = ( String ) inArchive .getProperty (index , PropID .USER );
422
+ stringProperty = inArchive .getStringProperty (index , PropID .USER );
423
423
if (stringProperty != null && !stringProperty .isEmpty ())
424
424
attributes .put (FILE_OWNER_ATTRIBUTE , stringProperty );
425
425
426
- stringProperty = ( String ) inArchive .getProperty (index , PropID .GROUP );
426
+ stringProperty = inArchive .getStringProperty (index , PropID .GROUP );
427
427
if (stringProperty != null && !stringProperty .isEmpty ())
428
428
attributes .put (FILE_GROUP_ATTRIBUTE , stringProperty );
429
429
0 commit comments