This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new 6a9224385e deprecate unnecessary constructor
6a9224385e is described below
commit 6a9224385e1fdea4fc22394e382f3b2a68c87612
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Feb 20 12:25:18 2026 +0100
deprecate unnecessary constructor
---
poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
index f80383b52c..ba13ca4e3a 100644
--- a/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
+++ b/poi/src/main/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
@@ -325,7 +325,7 @@ public final class HSSFWorkbook extends POIDocument
implements Workbook {
* low level models. If you're reading in a workbook...start here.
*
* @param directory the POI filesystem directory to process from
- * @param fs the POI filesystem that contains the Workbook
stream.
+ * @param fs the POI filesystem that contains the Workbook
stream (ignored).
* @param preserveNodes whether to preserve other nodes, such as
* macros. This takes more memory, so only say yes
if you
* need to. If set, will store all of the
POIFSFileSystem
@@ -333,8 +333,10 @@ public final class HSSFWorkbook extends POIDocument
implements Workbook {
* @throws IOException if the stream cannot be read
* @throws IllegalStateException a number of runtime exceptions can be
thrown, especially if there are problems with the
* input format
+ * @deprecated use the contructor that omits the ignored <code>fs</code>
param instead
* @see POIFSFileSystem
*/
+ @Removal(version = "7.0.0")
public HSSFWorkbook(DirectoryNode directory, POIFSFileSystem fs, boolean
preserveNodes)
throws IOException {
this(directory, preserveNodes);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]