diff --git a/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java b/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java index 39b978a77..1f7a064f6 100644 --- a/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java +++ b/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java @@ -135,15 +135,6 @@ public class XLSX2CSV { output.append('"'); } } - - @Override - public void headerFooter(String text, boolean isHeader, String tagName) { - // Skip, no headers or footers in CSV - } - - @Override - public void endSheet() { - } } diff --git a/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java b/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java index 6de5f5f6c..919d007cb 100644 --- a/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java +++ b/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java @@ -64,10 +64,6 @@ public class HybridStreaming { public void startRow(int rowNum) { } - @Override - public void headerFooter(String text, boolean isHeader, String tagName) { - } - @Override public void endRow(int rowNum) { } @@ -75,12 +71,6 @@ public class HybridStreaming { @Override public void cell(String cellReference, String formattedValue, XSSFComment comment) { } - - @Override - public void endSheet() { - - } }; } - } diff --git a/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java b/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java index 1b343e4c0..e5f5e5c50 100644 --- a/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java +++ b/src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java @@ -515,9 +515,9 @@ public class XSSFSheetXMLHandler extends DefaultHandler { public void cell(String cellReference, String formattedValue, XSSFComment comment); /** A header or footer has been encountered */ - public void headerFooter(String text, boolean isHeader, String tagName); + public default void headerFooter(String text, boolean isHeader, String tagName) {} /** Signal that the end of a sheet was been reached */ - public void endSheet(); + public default void endSheet() {} } } diff --git a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java index efcce6f94..d94df4cf2 100644 --- a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java +++ b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java @@ -342,10 +342,6 @@ public class XSSFEventBasedExcelExtractor extends POIXMLTextExtractor output.append('\n'); } - @Override - public void endSheet() { - } - @Override public void cell(String cellRef, String formattedValue, XSSFComment comment) { if(firstCellOfRow) {