diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java index d7a7851963..a7adc3356f 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java @@ -304,7 +304,6 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { /** * @see org.apache.poi.xwpf.usermodel.IBody#getTableArray(int) */ - @Override public XWPFTable getTableArray(int pos) { if(pos > 0 && pos < tables.size()){ return tables.get(pos); @@ -942,7 +941,6 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { * @param i * @param table */ - @Override public void insertTable(int pos, XWPFTable table) { bodyElements.add(pos, table); int i; @@ -1163,7 +1161,6 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { * Returns the paragraph that of position pos * @see org.apache.poi.xwpf.usermodel.IBody#getParagraphArray(int) */ - @Override public XWPFParagraph getParagraphArray(int pos) { if(pos > 0 && pos < paragraphs.size()){ return paragraphs.get(pos); @@ -1179,7 +1176,6 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { * belongs. * @see org.apache.poi.xwpf.usermodel.IBody#getPart() */ - @Override public IBody getPart() { return this; } @@ -1190,7 +1186,6 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { * @return * @see org.apache.poi.xwpf.usermodel.IBody#getPartType() */ - @Override public BodyType getPartType() { return BodyType.DOCUMENT; } @@ -1200,7 +1195,6 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody { * @param o * @return */ - @Override public XWPFTableCell getTableCell(CTTc cell) { XmlCursor cursor = cell.newCursor(); cursor.toParent(); diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFFooter.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFFooter.java index 4b95ad1c5b..f6aa6b1ee8 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFFooter.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFFooter.java @@ -138,7 +138,6 @@ public class XWPFFooter extends XWPFHeaderFooter { * returns the Part, to which the body belongs, which you need for adding relationship to other parts * @see org.apache.poi.xwpf.usermodel.IBody#getPart() */ - @Override public IBody getPart() { return this; } @@ -147,7 +146,6 @@ public class XWPFFooter extends XWPFHeaderFooter { * get the PartType of the body * @see org.apache.poi.xwpf.usermodel.IBody#getPartType() */ - @Override public BodyType getPartType() { return BodyType.FOOTER; } diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFHeader.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFHeader.java index c78dc05e5e..0af3564629 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFHeader.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFHeader.java @@ -147,7 +147,6 @@ public class XWPFHeader extends XWPFHeaderFooter { * returns the Part, to which the body belongs, which you need for adding relationship to other parts * @see org.apache.poi.xwpf.usermodel.IBody#getPart() */ - @Override public IBody getPart() { return this; } @@ -156,7 +155,6 @@ public class XWPFHeader extends XWPFHeaderFooter { * get the PartType of the body * @see org.apache.poi.xwpf.usermodel.IBody#getPartType() */ - @Override public BodyType getPartType() { return BodyType.HEADER; } diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFHeaderFooter.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFHeaderFooter.java index 2b11d733a7..af870718eb 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFHeaderFooter.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFHeaderFooter.java @@ -441,7 +441,6 @@ public abstract class XWPFHeaderFooter extends POIXMLDocumentPart implements IBo * Returns the table at position pos * @see org.apache.poi.xwpf.usermodel.IBody#getTableArray(int) */ - @Override public XWPFTable getTableArray(int pos) { if(pos > 0 && pos < tables.size()){ @@ -455,7 +454,6 @@ public abstract class XWPFHeaderFooter extends POIXMLDocumentPart implements IBo * @param i * @param table */ - @Override public void insertTable(int pos, XWPFTable table) { bodyElements.add(pos, table); int i; diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java index 1e2fd408f4..6aabadef95 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java @@ -1278,7 +1278,6 @@ public class XWPFParagraph implements IBodyElement{ * returns the type of the BodyElement Paragraph * @see org.apache.poi.xwpf.usermodel.IBodyElement#getElementType() */ - @Override public BodyElementType getElementType() { return BodyElementType.PARAGRAPH; } @@ -1287,7 +1286,6 @@ public class XWPFParagraph implements IBodyElement{ * returns the part of the bodyElement * @see org.apache.poi.xwpf.usermodel.IBody#getPart() */ - @Override public IBody getPart() { if(part != null){ return part.getPart(); @@ -1299,7 +1297,6 @@ public class XWPFParagraph implements IBodyElement{ * returns the partType of the bodyPart which owns the bodyElement * @see org.apache.poi.xwpf.usermodel.IBody#getPartType() */ - @Override public BodyType getPartType() { return part.getPartType(); } diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java index b12cce2c12..429eb623b3 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java @@ -291,7 +291,6 @@ public class XWPFTable implements IBodyElement{ * returns the type of the BodyElement Table * @see org.apache.poi.xwpf.usermodel.IBodyElement#getElementType() */ - @Override public BodyElementType getElementType() { return BodyElementType.TABLE; } @@ -301,7 +300,6 @@ public class XWPFTable implements IBodyElement{ * returns the part of the bodyElement * @see org.apache.poi.xwpf.usermodel.IBody#getPart() */ - @Override public IBody getPart() { if(part != null){ return part.getPart(); @@ -314,7 +312,6 @@ public class XWPFTable implements IBodyElement{ * returns the partType of the bodyPart which owns the bodyElement * @see org.apache.poi.xwpf.usermodel.IBody#getPartType() */ - @Override public BodyType getPartType() { return ((IBody)part).getPartType(); } diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java index f6b3659389..3e317cca63 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java @@ -114,7 +114,6 @@ public class XWPFTableCell implements IBody { * @return null if there is no XWPFParagraph with an corresponding CTPparagraph in the paragraphList of this table * XWPFParagraph with the correspondig CTP p */ - @Override public XWPFParagraph getParagraph(CTP p){ for (XWPFParagraph paragraph : paragraphs) { if(p.equals(paragraph.getCTP())){ @@ -232,7 +231,6 @@ public class XWPFTableCell implements IBody { /** * @see org.apache.poi.xwpf.usermodel.IBody#getParagraphArray(int) */ - @Override public XWPFParagraph getParagraphArray(int pos) { if(pos > 0 && pos < paragraphs.size()){ return paragraphs.get(pos); @@ -247,7 +245,6 @@ public class XWPFTableCell implements IBody { * get the to which the TableCell belongs * @see org.apache.poi.xwpf.usermodel.IBody#getPart() */ - @Override public IBody getPart() { return (IBody) tableRow.getTable().getPart(); } @@ -256,7 +253,6 @@ public class XWPFTableCell implements IBody { /** * @see org.apache.poi.xwpf.usermodel.IBody#getPartType() */ - @Override public BodyType getPartType() { return BodyType.TABLECELL; } @@ -266,7 +262,6 @@ public class XWPFTableCell implements IBody { * get a table by its CTTbl-Object * @see org.apache.poi.xwpf.usermodel.IBody#getTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl) */ - @Override public XWPFTable getTable(CTTbl ctTable) { for(int i=0; i 0 && pos < tables.size()){ return tables.get(pos); @@ -290,7 +284,6 @@ public class XWPFTableCell implements IBody { /** * @see org.apache.poi.xwpf.usermodel.IBodyPart#getTables() */ - @Override public List getTables() { return Collections.unmodifiableList(tables); } @@ -300,7 +293,6 @@ public class XWPFTableCell implements IBody { * inserts an existing XWPFTable to the arrays bodyElements and tables * @see org.apache.poi.xwpf.usermodel.IBody#insertTable(int, org.apache.poi.xwpf.usermodel.XWPFTable) */ - @Override public void insertTable(int pos, XWPFTable table) { bodyElements.add(pos, table); int i; @@ -327,7 +319,6 @@ public class XWPFTableCell implements IBody { * @param o * @return */ - @Override public XWPFTableCell getTableCell(CTTc cell) { XmlCursor cursor = cell.newCursor(); cursor.toParent();