bug 59907: add @Removal annotations to deprecated ClientAnchor#setAnchorType(int)

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1760619 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-09-14 02:55:52 +00:00
parent 0977e51818
commit 9ea5915313
3 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import org.apache.poi.ddf.EscherClientAnchorRecord;
import org.apache.poi.ddf.EscherRecord; import org.apache.poi.ddf.EscherRecord;
import org.apache.poi.ss.SpreadsheetVersion; import org.apache.poi.ss.SpreadsheetVersion;
import org.apache.poi.ss.usermodel.ClientAnchor; import org.apache.poi.ss.usermodel.ClientAnchor;
import org.apache.poi.util.Removal;
/** /**
* A client anchor is attached to an excel worksheet. It anchors against a * A client anchor is attached to an excel worksheet. It anchors against a
@ -272,6 +273,8 @@ public final class HSSFClientAnchor extends HSSFAnchor implements ClientAnchor {
* @param anchorType the anchor type to set * @param anchorType the anchor type to set
* @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead. * @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead.
*/ */
@Removal(version="3.17")
@Override
public void setAnchorType(int anchorType) { public void setAnchorType(int anchorType) {
_escherClientAnchor.setFlag((short) anchorType); _escherClientAnchor.setFlag((short) anchorType);
} }

View File

@ -17,6 +17,7 @@
package org.apache.poi.ss.usermodel; package org.apache.poi.ss.usermodel;
import org.apache.poi.util.Internal; import org.apache.poi.util.Internal;
import org.apache.poi.util.Removal;
/** /**
* A client anchor is attached to an excel worksheet. It anchors against a * A client anchor is attached to an excel worksheet. It anchors against a
@ -296,6 +297,7 @@ public interface ClientAnchor {
* @param anchorType the anchor type to set * @param anchorType the anchor type to set
* @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead. * @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead.
*/ */
@Removal(version="3.17")
public void setAnchorType( int anchorType ); public void setAnchorType( int anchorType );
/** /**

View File

@ -19,6 +19,7 @@ package org.apache.poi.xssf.usermodel;
import org.apache.poi.ss.usermodel.ClientAnchor; import org.apache.poi.ss.usermodel.ClientAnchor;
import org.apache.poi.util.Internal; import org.apache.poi.util.Internal;
import org.apache.poi.util.Removal;
import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker; import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker;
/** /**
@ -230,6 +231,7 @@ public final class XSSFClientAnchor extends XSSFAnchor implements ClientAnchor {
* @param anchorType the anchor type to set * @param anchorType the anchor type to set
* @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead * @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead
*/ */
@Removal(version="3.17")
@Override @Override
public void setAnchorType( int anchorType ) public void setAnchorType( int anchorType )
{ {