aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml/src
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2021-10-22 16:52:04 +0000
committerPJ Fanning <fanningpj@apache.org>2021-10-22 16:52:04 +0000
commitd72018db13fa1ca0e4a67a989676d94e93f18223 (patch)
tree5db97dcb27422bf1a4b7072285718ecf266e3b3b /poi-ooxml/src
parentafb1be3fbb199ba18f5755f2f5580642c52ed8fd (diff)
downloadpoi-d72018db13fa1ca0e4a67a989676d94e93f18223.tar.gz
poi-d72018db13fa1ca0e4a67a989676d94e93f18223.zip
deprecate method that should not be public
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894483 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src')
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
index 490798adf0..2981bbbad1 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
@@ -40,6 +40,7 @@ import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.FormulaError;
import org.apache.poi.ss.util.CellReference;
import org.apache.poi.util.CodepointsUtil;
+import org.apache.poi.util.Removal;
import org.apache.poi.util.TempFile;
import org.apache.poi.xssf.model.SharedStringsTable;
import org.apache.poi.xssf.usermodel.XSSFRichTextString;
@@ -82,6 +83,7 @@ public class SheetDataWriter implements Closeable {
this();
this._sharedStringSource = sharedStringsTable;
}
+
/**
* Create a temp file to write sheet data.
* By default, temp files are created in the default temporary-file directory
@@ -89,7 +91,10 @@ public class SheetDataWriter implements Closeable {
* it and specify a different temp directory or filename or suffix, e.g. <code>.gz</code>
*
* @return temp file to write sheet data
+ * @deprecated use {@link TempFile#createTempFile(String, String)} directly
*/
+ @Removal(version = "6.0.0")
+ //make this protected or private in POI 6.0.0 - no need for this to be public
public File createTempFile() throws IOException {
return TempFile.createTempFile("poi-sxssf-sheet", ".xml");
}