poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1814997 - /poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
Date Sun, 12 Nov 2017 01:30:42 GMT
Author: onealj
Date: Sun Nov 12 01:30:42 2017
New Revision: 1814997

URL: http://svn.apache.org/viewvc?rev=1814997&view=rev
Log:
deprecate XWPFTable#addNewRowBetween(int,int), which has not been implemented since 2008 when
this class was first authored. (Unrelated: This closes #82 on github).

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java?rev=1814997&r1=1814996&r2=1814997&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java Sun Nov 12 01:30:42
2017
@@ -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 IBodyE
         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");
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message