]> source.dussan.org Git - poi.git/commitdiff
try to make comments table more extensible
authorPJ Fanning <fanningpj@apache.org>
Wed, 17 Nov 2021 18:53:11 +0000 (18:53 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 17 Nov 2021 18:53:11 +0000 (18:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895117 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/xssf/model/CommentsTable.java

index 9f88818b3b3e516f61a814beead5e611fa343b02..9ce61fbfb0b1e8a128ec2f1a4439906d9a670467 100644 (file)
@@ -286,19 +286,6 @@ public class CommentsTable extends POIXMLDocumentPart implements Comments {
         return false;
     }
 
-    /**
-     * 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
      *
@@ -323,4 +310,17 @@ public class CommentsTable extends POIXMLDocumentPart implements Comments {
             }
         }
     }
+
+    /**
+     * 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;
+    }
 }