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:
parent
0977e51818
commit
9ea5915313
@ -21,6 +21,7 @@ import org.apache.poi.ddf.EscherClientAnchorRecord;
|
||||
import org.apache.poi.ddf.EscherRecord;
|
||||
import org.apache.poi.ss.SpreadsheetVersion;
|
||||
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
|
||||
@ -272,6 +273,8 @@ public final class HSSFClientAnchor extends HSSFAnchor implements ClientAnchor {
|
||||
* @param anchorType the anchor type to set
|
||||
* @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead.
|
||||
*/
|
||||
@Removal(version="3.17")
|
||||
@Override
|
||||
public void setAnchorType(int anchorType) {
|
||||
_escherClientAnchor.setFlag((short) anchorType);
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.apache.poi.ss.usermodel;
|
||||
|
||||
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
|
||||
@ -296,6 +297,7 @@ public interface ClientAnchor {
|
||||
* @param anchorType the anchor type to set
|
||||
* @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead.
|
||||
*/
|
||||
@Removal(version="3.17")
|
||||
public void setAnchorType( int anchorType );
|
||||
|
||||
/**
|
||||
|
@ -19,6 +19,7 @@ package org.apache.poi.xssf.usermodel;
|
||||
|
||||
import org.apache.poi.ss.usermodel.ClientAnchor;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.poi.util.Removal;
|
||||
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
|
||||
* @deprecated POI 3.15. Use {@link #setAnchorType(AnchorType)} instead
|
||||
*/
|
||||
@Removal(version="3.17")
|
||||
@Override
|
||||
public void setAnchorType( int anchorType )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user