mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-06-30 18:14:51 +00:00
MNT-24883 avoid GodClass error in PMD
This commit is contained in:
parent
ba24d8d700
commit
72db7e48c8
@ -225,21 +225,7 @@ public class TransformManagerImpl implements TransformManager
|
|||||||
{
|
{
|
||||||
logger.error("Failed to delete temporary source file {}", sourceFile.getPath());
|
logger.error("Failed to delete temporary source file {}", sourceFile.getPath());
|
||||||
}
|
}
|
||||||
deleteDocUUIDFolder();
|
if (sourceFile != null && Util.isDocFile(sourceFile.getPath()))
|
||||||
outputStreamLengthRecorder = null;
|
|
||||||
sourceFile = null;
|
|
||||||
sourceFileName = null;
|
|
||||||
createSourceFileCalled = false;
|
|
||||||
startedWithSourceFile = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void deleteDocUUIDFolder()
|
|
||||||
{
|
|
||||||
if (sourceFile == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (Util.isDocFile(sourceFile.getPath()))
|
|
||||||
{
|
{
|
||||||
File parentDir = sourceFile.getParentFile();
|
File parentDir = sourceFile.getParentFile();
|
||||||
if (parentDir != null
|
if (parentDir != null
|
||||||
@ -249,6 +235,11 @@ public class TransformManagerImpl implements TransformManager
|
|||||||
logger.error("Failed to delete parent directory {}", parentDir.getPath());
|
logger.error("Failed to delete parent directory {}", parentDir.getPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
outputStreamLengthRecorder = null;
|
||||||
|
sourceFile = null;
|
||||||
|
sourceFileName = null;
|
||||||
|
createSourceFileCalled = false;
|
||||||
|
startedWithSourceFile = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void deleteTargetFile()
|
public void deleteTargetFile()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user