try to make comments table more extensible

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1895117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-11-17 18:53:11 +00:00
parent 3a90544a15
commit 9c81d7f588
1 changed files with 13 additions and 13 deletions

View 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;
}
}