[
https://issues.apache.org/jira/browse/TIKA-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18069810#comment-18069810
]
ASF GitHub Bot commented on TIKA-4704:
--------------------------------------
Copilot commented on code in PR #2725:
URL: https://github.com/apache/tika/pull/2725#discussion_r3014001565
##########
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ooxml/OOXMLExtractorFactory.java:
##########
@@ -97,11 +97,12 @@ public static void parse(InputStream stream, ContentHandler
baseHandler, Metadat
//if the pkg is in the opencontainer of a TikaInputStream, it will get
closed.
//However, if a regular inputstream has been sent in, we need to
revert the pkg.
boolean mustRevertPackage = false;
+ TemporaryResources tmp = new TemporaryResources();
try {
Review Comment:
TemporaryResources is used but not imported in this file. As-is this won’t
compile; add the appropriate import (org.apache.tika.io.TemporaryResources).
> Avoid remaining temp files
> --------------------------
>
> Key: TIKA-4704
> URL: https://issues.apache.org/jira/browse/TIKA-4704
> Project: Tika
> Issue Type: Task
> Affects Versions: 3.3.0
> Reporter: Tilman Hausherr
> Priority: Minor
> Fix For: 4.0.0, 3.3.1
>
> Attachments: screenshot-1.png
>
>
> This is my temp directory after a successful build of tika 3. We should try
> to lessen this.
> !screenshot-1.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)