mirror of https://github.com/apache/poi.git
remove some deprecated code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879909 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
eaf9f147d3
commit
c34c1ca49c
|
@ -58,15 +58,4 @@ public interface Hyperlink {
|
|||
* @see HyperlinkType#forInt(int)
|
||||
*/
|
||||
public HyperlinkType getType();
|
||||
|
||||
/**
|
||||
* Return the type of this hyperlink
|
||||
*
|
||||
* @return the type of this hyperlink
|
||||
* @since POI 3.15 beta 3
|
||||
* @deprecated use <code>getType()</code> instead
|
||||
*/
|
||||
@Deprecated
|
||||
@Removal(version = "4.2")
|
||||
public HyperlinkType getTypeEnum();
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ import org.apache.poi.common.usermodel.HyperlinkType;
|
|||
import org.apache.poi.hssf.record.HyperlinkRecord;
|
||||
import org.apache.poi.ss.usermodel.Hyperlink;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.poi.util.Removal;
|
||||
|
||||
/**
|
||||
* Represents an Excel hyperlink.
|
||||
|
@ -265,19 +264,6 @@ public class HSSFHyperlink implements Hyperlink {
|
|||
return link_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the type of this hyperlink
|
||||
*
|
||||
* @return the type of this hyperlink
|
||||
* @deprecated use <code>getType()</code> instead
|
||||
*/
|
||||
@Deprecated
|
||||
@Removal(version = "4.2")
|
||||
@Override
|
||||
public HyperlinkType getTypeEnum() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return whether the objects have the same HyperlinkRecord
|
||||
*/
|
||||
|
|
|
@ -26,7 +26,6 @@ import org.apache.poi.openxml4j.opc.PackageRelationship;
|
|||
import org.apache.poi.sl.usermodel.Hyperlink;
|
||||
import org.apache.poi.sl.usermodel.Slide;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.poi.util.Removal;
|
||||
import org.openxmlformats.schemas.drawingml.x2006.main.CTHyperlink;
|
||||
|
||||
public class XSLFHyperlink implements Hyperlink<XSLFShape,XSLFTextParagraph> {
|
||||
|
@ -95,13 +94,6 @@ public class XSLFHyperlink implements Hyperlink<XSLFShape,XSLFTextParagraph> {
|
|||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Removal(version = "4.2")
|
||||
@Override
|
||||
public HyperlinkType getTypeEnum() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void linkToEmail(String emailAddress) {
|
||||
linkToExternal("mailto:"+emailAddress);
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.apache.poi.openxml4j.opc.PackageRelationship;
|
|||
import org.apache.poi.ss.usermodel.Hyperlink;
|
||||
import org.apache.poi.ss.util.CellReference;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.poi.util.Removal;
|
||||
import org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHyperlink;
|
||||
|
||||
/**
|
||||
|
@ -162,19 +161,6 @@ public class XSSFHyperlink implements Hyperlink {
|
|||
public HyperlinkType getType() {
|
||||
return _type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the type of this hyperlink
|
||||
*
|
||||
* @return the type of this hyperlink
|
||||
* @deprecated use <code>getType</code> instead
|
||||
*/
|
||||
@Deprecated
|
||||
@Removal(version = "4.2")
|
||||
@Override
|
||||
public HyperlinkType getTypeEnum() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the address of the cell this hyperlink applies to, e.g. A55
|
||||
|
|
|
@ -33,7 +33,6 @@ import org.apache.poi.hslf.record.Record;
|
|||
import org.apache.poi.hslf.record.TxInteractiveInfoAtom;
|
||||
import org.apache.poi.sl.usermodel.Hyperlink;
|
||||
import org.apache.poi.sl.usermodel.Slide;
|
||||
import org.apache.poi.util.Removal;
|
||||
|
||||
/**
|
||||
* Represents a hyperlink in a PowerPoint document
|
||||
|
@ -150,21 +149,6 @@ public final class HSLFHyperlink implements Hyperlink<HSLFShape,HSLFTextParagrap
|
|||
return HyperlinkType.NONE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the type of the hyperlink action.
|
||||
* Must be a <code>LINK_*</code> constant</code>
|
||||
*
|
||||
* @return the hyperlink URL
|
||||
* @see InteractiveInfoAtom
|
||||
* @deprecated use <code>getType</code> instead
|
||||
*/
|
||||
@Deprecated
|
||||
@Removal(version = "4.2")
|
||||
@Override
|
||||
public HyperlinkType getTypeEnum() {
|
||||
return getType();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void linkToEmail(String emailAddress) {
|
||||
|
|
Loading…
Reference in New Issue