Author: fanningpj Date: Wed Jul 12 08:15:44 2017 New Revision: 1801692 URL: http://svn.apache.org/viewvc?rev=1801692&view=rev Log: remove deprecated methods from CommentsTable
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java?rev=1801692&r1=1801691&r2=1801692&view=diff ============================================================================== --- poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java (original) +++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java Wed Jul 12 08:15:44 2017 @@ -92,15 +92,6 @@ public class CommentsTable extends POIXM /** * Called after the reference is updated, so that * we can reflect that in our cache - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #referenceUpdated(CellAddress, CTComment)} instead - */ - public void referenceUpdated(String oldReference, CTComment comment) { - referenceUpdated(new CellAddress(oldReference), comment); - } - - /** - * Called after the reference is updated, so that - * we can reflect that in our cache * @param oldReference the comment to remove from the commentRefs map * @param comment the comment to replace in the commentRefs map */ @@ -136,17 +127,6 @@ public class CommentsTable extends POIXM /** * Finds the cell comment at cellAddress, if one exists * - * @param cellRef the address of the cell to find a comment - * @return cell comment if one exists, otherwise returns null - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #findCellComment(CellAddress)} instead - */ - public XSSFComment findCellComment(String cellRef) { - return findCellComment(new CellAddress(cellRef)); - } - - /** - * Finds the cell comment at cellAddress, if one exists - * * @param cellAddress the address of the cell to find a comment * @return cell comment if one exists, otherwise returns null */ @@ -155,19 +135,6 @@ public class CommentsTable extends POIXM return ct == null ? null : new XSSFComment(this, ct, null); } - - /** - * Get the underlying CTComment xmlbean for a comment located at cellRef, if it exists - * - * @param ref the location of the cell comment - * @return CTComment xmlbean if comment exists, otherwise return null. - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link CommentsTable#getCTComment(CellAddress)} instead - */ - @Internal - public CTComment getCTComment(String ref) { - return getCTComment(new CellAddress(ref)); - } - /** * Get the underlying CTComment xmlbean for a comment located at cellRef, if it exists * @@ -215,18 +182,6 @@ public class CommentsTable extends POIXM } /** - * Create a new comment located at cell address - * - * @param ref the location to add the comment - * @return a new CTComment located at ref with default author - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #newComment(CellAddress)} instead - */ - @Internal - public CTComment newComment(String ref) { - return newComment(new CellAddress(ref)); - } - - /** * Create a new comment located` at cell address * * @param ref the location to add the comment @@ -243,17 +198,6 @@ public class CommentsTable extends POIXM } return ct; } - - /** - * Remove the comment at cellRef location, if one exists - * - * @param cellRef the location of the comment to remove - * @return returns true if a comment was removed - * @deprecated 2015-11-23 (circa POI 3.14beta1). Use {@link #removeComment(CellAddress)} instead - */ - public boolean removeComment(String cellRef) { - return removeComment(new CellAddress(cellRef)); - } /** * Remove the comment at cellRef location, if one exists --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org