]> source.dussan.org Git - poi.git/commitdiff
Replace the incompatible new interface method endSheet() with a Java 8 default method...
authorDominik Stadler <centic@apache.org>
Mon, 25 Sep 2017 14:45:14 +0000 (14:45 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 25 Sep 2017 14:45:14 +0000 (14:45 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1809635 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java
src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java
src/ooxml/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java

index 39b978a77de43b7f11098c737f63fea1dfd52eaa..1f7a064f67f144db49f6f0aadc29c3ff6196ef75 100644 (file)
@@ -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() {
-        }
     }
 
 
index 6de5f5f6cb958839347613950b9f4a15de76abe0..919d007cb1c66d9079b6b51f6d77f251eb1bc8e3 100644 (file)
@@ -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() {
-
-            }
         };
     }
-
 }
index 1b343e4c07865c06634e71596014215fb99948cf..e5f5e5c503fdb6596a76efcffa91d7f796a99d80 100644 (file)
@@ -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() {}
    }
 }
index efcce6f94ba2624cc79c33958e035691dca5fd30..d94df4cf28eea668f63a470043e519ba7d972a41 100644 (file)
@@ -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) {