From c1e6c2eef7949e74e99d6dda799d2be1b9c6b6ff Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Sun, 12 Nov 2017 01:30:42 +0000 Subject: [PATCH] deprecate XWPFTable#addNewRowBetween(int,int), which has not been implemented since 2008 when this class was first authored. (Unrelated: This closes #82 on github). git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1814997 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xwpf/usermodel/XWPFTable.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 388e0fb04..b7762828e 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java @@ -24,6 +24,8 @@ import java.util.List; import org.apache.poi.POIXMLDocumentPart; import org.apache.poi.util.Internal; +import org.apache.poi.util.NotImplemented; +import org.apache.poi.util.Removal; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDecimalNumber; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP; @@ -171,8 +173,17 @@ public class XWPFTable implements IBodyElement, ISDTContents { return text.toString(); } + + /** + * This method has existed since 2008 without an implementation. + * It will be removed unless an implementation is provided. + * @deprecated 4.0.0 due to lack of implementation. + */ + @Deprecated + @Removal + @NotImplemented public void addNewRowBetween(int start, int end) { - // TODO + throw new UnsupportedOperationException("XWPFTable#addNewRowBetween(int, int) not implemented"); } /**