Author: kiwiwings
Date: Tue Apr 14 19:09:27 2020
New Revision: 1876526
URL: http://svn.apache.org/viewvc?rev=1876526&view=rev
Log:
Sonar fix - Child class methods named for parent class methods should be
overrides
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFDialogsheet.java
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFDialogsheet.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFDialogsheet.java?rev=1876526&r1=1876525&r2=1876526&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFDialogsheet.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFDialogsheet.java
Tue Apr 14 19:09:27 2020
@@ -30,6 +30,7 @@ import org.openxmlformats.schemas.spread
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 XSS
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 XSS
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());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]