deprecate unnecessary constructor

This commit is contained in:
PJ Fanning 2026-02-20 12:25:18 +01:00
parent df5604a1d7
commit 6a9224385e

View File

@ -325,7 +325,7 @@ public final class HSSFWorkbook extends POIDocument implements Workbook {
* low level models. If you're reading in a workbook...start here. * low level models. If you're reading in a workbook...start here.
* *
* @param directory the POI filesystem directory to process from * @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 * @param preserveNodes whether to preserve other nodes, such as
* macros. This takes more memory, so only say yes if you * macros. This takes more memory, so only say yes if you
* need to. If set, will store all of the POIFSFileSystem * 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 IOException if the stream cannot be read
* @throws IllegalStateException a number of runtime exceptions can be thrown, especially if there are problems with the * @throws IllegalStateException a number of runtime exceptions can be thrown, especially if there are problems with the
* input format * input format
* @deprecated use the contructor that omits the ignored <code>fs</code> param instead
* @see POIFSFileSystem * @see POIFSFileSystem
*/ */
@Removal(version = "7.0.0")
public HSSFWorkbook(DirectoryNode directory, POIFSFileSystem fs, boolean preserveNodes) public HSSFWorkbook(DirectoryNode directory, POIFSFileSystem fs, boolean preserveNodes)
throws IOException { throws IOException {
this(directory, preserveNodes); this(directory, preserveNodes);