From 9ea59153136522e4af3faef3e48dcc053130b655 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Wed, 14 Sep 2016 02:55:52 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java | 3 +++ src/java/org/apache/poi/ss/usermodel/ClientAnchor.java | 2 ++ .../java/org/apache/poi/xssf/usermodel/XSSFClientAnchor.java | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java b/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java index e71e362b8..d4c8c6d68 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFClientAnchor.java @@ -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); } diff --git a/src/java/org/apache/poi/ss/usermodel/ClientAnchor.java b/src/java/org/apache/poi/ss/usermodel/ClientAnchor.java index 65e69d87d..705c53bba 100644 --- a/src/java/org/apache/poi/ss/usermodel/ClientAnchor.java +++ b/src/java/org/apache/poi/ss/usermodel/ClientAnchor.java @@ -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 ); /** diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFClientAnchor.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFClientAnchor.java index 19d7d8109..df47fc227 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFClientAnchor.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFClientAnchor.java @@ -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 ) {