You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/11/17 18:53:11 UTC
svn commit: r1895117 - /poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/model/CommentsTable.java
Author: fanningpj
Date: Wed Nov 17 18:53:11 2021
New Revision: 1895117
URL: http://svn.apache.org/viewvc?rev=1895117&view=rev
Log:
try to make comments table more extensible
Modified:
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/model/CommentsTable.java
Modified: poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/model/CommentsTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/model/CommentsTable.java?rev=1895117&r1=1895116&r2=1895117&view=diff
==============================================================================
--- poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/model/CommentsTable.java (original)
+++ poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/model/CommentsTable.java Wed Nov 17 18:53:11 2021
@@ -287,19 +287,6 @@ public class CommentsTable extends POIXM
}
/**
- * Add a new author to the CommentsTable.
- * This does not check if the author already exists.
- *
- * @param author the name of the comment author
- * @return the index of the new author
- */
- private int addNewAuthor(String author) {
- int index = comments.getAuthors().sizeOfAuthorArray();
- comments.getAuthors().insertAuthor(index, author);
- return index;
- }
-
- /**
* Returns the underlying CTComments list xmlbean
*
* @return underlying comments list xmlbean
@@ -323,4 +310,17 @@ public class CommentsTable extends POIXM
}
}
}
+
+ /**
+ * Add a new author to the CommentsTable.
+ * This does not check if the author already exists.
+ *
+ * @param author the name of the comment author
+ * @return the index of the new author
+ */
+ private int addNewAuthor(String author) {
+ int index = comments.getAuthors().sizeOfAuthorArray();
+ comments.getAuthors().insertAuthor(index, author);
+ return index;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org