]> source.dussan.org Git - poi.git/commitdiff
Sonar fix - Child class methods named for parent class methods should be overrides
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 14 Apr 2020 19:09:27 +0000 (19:09 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 14 Apr 2020 19:09:27 +0000 (19:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876526 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFDialogsheet.java

index 46b6cd36291490f3a043999d06a25396e16bd55f..bb81b5ff50c171df8d768aedc047c526bdb9fe76 100644 (file)
@@ -30,6 +30,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTSheetViews;
 import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTWorksheet;
 
 //YK: TODO: this is only a prototype
+@SuppressWarnings("unused")
 public class XSSFDialogsheet extends XSSFSheet implements Sheet{
     protected CTDialogsheet dialogsheet;
 
@@ -43,43 +44,43 @@ public class XSSFDialogsheet extends XSSFSheet implements Sheet{
         return null;
     }
 
-    protected CTHeaderFooter getSheetTypeHeaderFooter() {
+    protected CTHeaderFooter getDialogHeaderFooter() {
         if (dialogsheet.getHeaderFooter() == null) {
             dialogsheet.setHeaderFooter(CTHeaderFooter.Factory.newInstance());
         }
         return dialogsheet.getHeaderFooter();
     }
 
-    protected CTSheetPr getSheetTypeSheetPr() {
+    protected CTSheetPr getDialogSheetPr() {
         if (dialogsheet.getSheetPr() == null) {
             dialogsheet.setSheetPr(CTSheetPr.Factory.newInstance());
         }
         return dialogsheet.getSheetPr();
     }
 
-    protected CTPageBreak getSheetTypeColumnBreaks() {
+    protected CTPageBreak getDialogColumnBreaks() {
         return null;
     }
 
-    protected CTSheetFormatPr getSheetTypeSheetFormatPr() {
+    protected CTSheetFormatPr getDialogSheetFormatPr() {
         if (dialogsheet.getSheetFormatPr() == null) {
             dialogsheet.setSheetFormatPr(CTSheetFormatPr.Factory.newInstance());
         }
         return dialogsheet.getSheetFormatPr();
     }
 
-    protected CTPageMargins getSheetTypePageMargins() {
+    protected CTPageMargins getDialogPageMargins() {
         if (dialogsheet.getPageMargins() == null) {
             dialogsheet.setPageMargins(CTPageMargins.Factory.newInstance());
         }
         return dialogsheet.getPageMargins();
     }
 
-    protected CTPageBreak getSheetTypeRowBreaks() {
+    protected CTPageBreak getDialogRowBreaks() {
         return null;
     }
 
-    protected CTSheetViews getSheetTypeSheetViews() {
+    protected CTSheetViews getDialogSheetViews() {
         if (dialogsheet.getSheetViews() == null) {
             dialogsheet.setSheetViews(CTSheetViews.Factory.newInstance());
             dialogsheet.getSheetViews().addNewSheetView();
@@ -87,14 +88,14 @@ public class XSSFDialogsheet extends XSSFSheet implements Sheet{
         return dialogsheet.getSheetViews();
     }
 
-    protected CTPrintOptions getSheetTypePrintOptions() {
+    protected CTPrintOptions getDialogPrintOptions() {
         if (dialogsheet.getPrintOptions() == null) {
             dialogsheet.setPrintOptions(CTPrintOptions.Factory.newInstance());
         }
         return dialogsheet.getPrintOptions();
     }
 
-    protected CTSheetProtection getSheetTypeProtection() {
+    protected CTSheetProtection getDialogProtection() {
         if (dialogsheet.getSheetProtection() == null) {
             dialogsheet.setSheetProtection(CTSheetProtection.Factory.newInstance());
         }