git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1877872 13f79535-47bb-0310-9956-ffa450edef68tags/before_ooxml_3rd_edition
// See https://github.com/melix/japicmp-gradle-plugin | // See https://github.com/melix/japicmp-gradle-plugin | ||||
apply plugin: 'me.champeau.gradle.japicmp' | apply plugin: 'me.champeau.gradle.japicmp' | ||||
version = '4.1.3-SNAPSHOT' | |||||
version = '5.0.0-SNAPSHOT' | |||||
ext { | ext { | ||||
bouncyCastleVersion = '1.65' | bouncyCastleVersion = '1.65' | ||||
commonsCodecVersion = '1.14' | commonsCodecVersion = '1.14' |
<description>The Apache POI project Ant build.</description> | <description>The Apache POI project Ant build.</description> | ||||
<property name="version.id" value="4.1.3-SNAPSHOT"/> | |||||
<property name="version.id" value="5.0.0-SNAPSHOT"/> | |||||
<property name="release.rc" value="RC1"/> | <property name="release.rc" value="RC1"/> | ||||
<property environment="env"/> | <property environment="env"/> |
<!-- TODO Import these from the parent build file --> | <!-- TODO Import these from the parent build file --> | ||||
<property name="repository.m2" value="https://repo1.maven.org"/> | <property name="repository.m2" value="https://repo1.maven.org"/> | ||||
<property name="version.id" value="4.1.3-SNAPSHOT"/> | |||||
<property name="version.id" value="5.0.0-SNAPSHOT"/> | |||||
<property name="dist.dir" value="build/dist"/> | <property name="dist.dir" value="build/dist"/> | ||||
<!-- jars in the /lib directory, see the fetch-bundle-jars target--> | <!-- jars in the /lib directory, see the fetch-bundle-jars target--> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>poi-examples</artifactId> | <artifactId>poi-examples</artifactId> | ||||
<packaging>jar</packaging> | <packaging>jar</packaging> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>poi-excelant</artifactId> | <artifactId>poi-excelant</artifactId> | ||||
<packaging>jar</packaging> | <packaging>jar</packaging> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>integration-test</artifactId> | <artifactId>integration-test</artifactId> | ||||
<packaging>jar</packaging> | <packaging>jar</packaging> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>poi-main</artifactId> | <artifactId>poi-main</artifactId> | ||||
<packaging>jar</packaging> | <packaging>jar</packaging> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
<relativePath>..</relativePath> | <relativePath>..</relativePath> | ||||
</parent> | </parent> | ||||
<artifactId>poi-ooxml-schema-encryption</artifactId> | <artifactId>poi-ooxml-schema-encryption</artifactId> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
<relativePath>..</relativePath> | <relativePath>..</relativePath> | ||||
</parent> | </parent> | ||||
<artifactId>poi-ooxml-schema-security</artifactId> | <artifactId>poi-ooxml-schema-security</artifactId> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
<relativePath>..</relativePath> | <relativePath>..</relativePath> | ||||
</parent> | </parent> | ||||
<artifactId>poi-ooxml-schema</artifactId> | <artifactId>poi-ooxml-schema</artifactId> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>poi-ooxml</artifactId> | <artifactId>poi-ooxml</artifactId> | ||||
<packaging>jar</packaging> | <packaging>jar</packaging> |
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<packaging>pom</packaging> | <packaging>pom</packaging> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
<name>Apache POI - the Java API for Microsoft Documents</name> | <name>Apache POI - the Java API for Microsoft Documents</name> | ||||
<description>Maven build of Apache POI for Sonar checks</description> | <description>Maven build of Apache POI for Sonar checks</description> | ||||
<url>https://poi.apache.org/</url> | <url>https://poi.apache.org/</url> |
<parent> | <parent> | ||||
<groupId>org.apache.poi</groupId> | <groupId>org.apache.poi</groupId> | ||||
<artifactId>poi-parent</artifactId> | <artifactId>poi-parent</artifactId> | ||||
<version>4.1.3-SNAPSHOT</version> | |||||
<version>5.0.0-SNAPSHOT</version> | |||||
</parent> | </parent> | ||||
<artifactId>poi-scratchpad</artifactId> | <artifactId>poi-scratchpad</artifactId> | ||||
<packaging>jar</packaging> | <packaging>jar</packaging> |
* Converts the ClassID to an UUID | * Converts the ClassID to an UUID | ||||
* @return the ClassID as UUID | * @return the ClassID as UUID | ||||
* | * | ||||
* @since POI 4.1.3 | |||||
* @since POI 5.0.0 | |||||
*/ | */ | ||||
public UUID toUUID() { | public UUID toUUID() { | ||||
final long mostSigBits = ByteBuffer.wrap(bytes, 0, 8).getLong(); | final long mostSigBits = ByteBuffer.wrap(bytes, 0, 8).getLong(); |
} | } | ||||
/** | /** | ||||
* @deprecated POI 4.1.3, will be removed in 5.0, use getCachedResultTypeEnum until switch to enum is fully done | |||||
* @deprecated POI 5.0.0, will be removed in 5.0, use getCachedResultTypeEnum until switch to enum is fully done | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
public int getCachedResultType() { | public int getCachedResultType() { | ||||
/** | /** | ||||
* Returns the type of the cached result | * Returns the type of the cached result | ||||
* @return A CellType | * @return A CellType | ||||
* @since POI 4.1.3 | |||||
* @since POI 5.0.0 | |||||
*/ | */ | ||||
public CellType getCachedResultTypeEnum() { | public CellType getCachedResultTypeEnum() { | ||||
if (specialCachedValue == null) { | if (specialCachedValue == null) { |
} | } | ||||
/** | /** | ||||
* @deprecated POI 4.1.3, will be removed in 5.0, use getValueTypeEnum until switch to enum is fully done | |||||
* @deprecated POI 5.0.0, will be removed in 5.0, use getValueTypeEnum until switch to enum is fully done | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
public int getValueType() { | public int getValueType() { | ||||
/** | /** | ||||
* Returns the type of the cached value | * Returns the type of the cached value | ||||
* @return A CellType | * @return A CellType | ||||
* @since POI 4.1.3 | |||||
* @since POI 5.0.0 | |||||
*/ | */ | ||||
public CellType getValueTypeEnum() { | public CellType getValueTypeEnum() { | ||||
int typeCode = getTypeCode(); | int typeCode = getTypeCode(); |
} | } | ||||
/** | /** | ||||
* @deprecated POI 4.1.3, will be removed in 5.0, use getCachedResultTypeEnum until switch to enum is fully done | |||||
* @deprecated POI 5.0.0, will be removed in 5.0, use getCachedResultTypeEnum until switch to enum is fully done | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
public int getCachedResultType() { | public int getCachedResultType() { | ||||
/** | /** | ||||
* Returns the type of the cached result | * Returns the type of the cached result | ||||
* @return A CellType | * @return A CellType | ||||
* @since POI 4.1.3 | |||||
* @since POI 5.0.0 | |||||
*/ | */ | ||||
public CellType getCachedResultTypeEnum() { | public CellType getCachedResultTypeEnum() { | ||||
if (specialCachedValue == null) { | if (specialCachedValue == null) { |
* @param tileDestRange destination range, which should be overridden | * @param tileDestRange destination range, which should be overridden | ||||
* @param copyStyles whether to copy the cell styles | * @param copyStyles whether to copy the cell styles | ||||
* @param copyMergedRanges whether to copy merged ranges | * @param copyMergedRanges whether to copy merged ranges | ||||
* @since 4.1.3 | |||||
* @since 5.0.0 | |||||
*/ | */ | ||||
public void copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange, boolean copyStyles, boolean copyMergedRanges) { | public void copyRange(CellRangeAddress tilePatternRange, CellRangeAddress tileDestRange, boolean copyStyles, boolean copyMergedRanges) { | ||||
Sheet sourceCopy = sourceSheet.getWorkbook().cloneSheet(sourceSheet.getWorkbook().getSheetIndex(sourceSheet)); | Sheet sourceCopy = sourceSheet.getWorkbook().cloneSheet(sourceSheet.getWorkbook().getSheetIndex(sourceSheet)); |
/** | /** | ||||
* @return the opc package to be used by this thread, stored as thread-local | * @return the opc package to be used by this thread, stored as thread-local | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - use {@link SignatureInfo#setOpcPackage(OPCPackage)} instead | |||||
* @deprecated in POI 5.0.0 - use {@link SignatureInfo#setOpcPackage(OPCPackage)} instead | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") | ||||
/** | /** | ||||
* @param opcPackage the opc package to be handled by this thread, stored as thread-local | * @param opcPackage the opc package to be handled by this thread, stored as thread-local | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - use {@link SignatureInfo#setOpcPackage(OPCPackage)} instead | |||||
* @deprecated in POI 5.0.0 - use {@link SignatureInfo#setOpcPackage(OPCPackage)} instead | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") | ||||
/** | /** | ||||
* @return the dereferencer used for Reference/@URI attributes, defaults to {@link OOXMLURIDereferencer} | * @return the dereferencer used for Reference/@URI attributes, defaults to {@link OOXMLURIDereferencer} | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - use {@link SignatureInfo#getUriDereferencer()} instead | |||||
* @deprecated in POI 5.0.0 - use {@link SignatureInfo#getUriDereferencer()} instead | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") | ||||
/** | /** | ||||
* @param uriDereferencer the dereferencer used for Reference/@URI attributes | * @param uriDereferencer the dereferencer used for Reference/@URI attributes | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - use {@link SignatureInfo#setUriDereferencer(URIDereferencer)} instead | |||||
* @deprecated in POI 5.0.0 - use {@link SignatureInfo#setUriDereferencer(URIDereferencer)} instead | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") | ||||
/** | /** | ||||
* @param signatureFactory the xml signature factory, saved as thread-local | * @param signatureFactory the xml signature factory, saved as thread-local | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - use {@link SignatureInfo#setSignatureFactory(XMLSignatureFactory)} | |||||
* @deprecated in POI 5.0.0 - use {@link SignatureInfo#setSignatureFactory(XMLSignatureFactory)} | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") | ||||
/** | /** | ||||
* @return the xml signature factory (thread-local) | * @return the xml signature factory (thread-local) | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - will be handled by SignatureInfo internally | |||||
* @deprecated in POI 5.0.0 - will be handled by SignatureInfo internally | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") | ||||
/** | /** | ||||
* @param keyInfoFactory the key factory, saved as thread-local | * @param keyInfoFactory the key factory, saved as thread-local | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - use {@link SignatureInfo#setKeyInfoFactory(KeyInfoFactory)} | |||||
* @deprecated in POI 5.0.0 - use {@link SignatureInfo#setKeyInfoFactory(KeyInfoFactory)} | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") | ||||
/** | /** | ||||
* @return the key factory (thread-local) | * @return the key factory (thread-local) | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - will be handled by SignatureInfo internally | |||||
* @deprecated in POI 5.0.0 - will be handled by SignatureInfo internally | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") | ||||
/** | /** | ||||
* Helper method to set provider | * Helper method to set provider | ||||
* @param provider the provider | * @param provider the provider | ||||
* @deprecated in POI 4.1.3 - use {@link SignatureInfo#setProvider(Provider)} | |||||
* @deprecated in POI 5.0.0 - use {@link SignatureInfo#setProvider(Provider)} | |||||
*/ | */ | ||||
@Internal | @Internal | ||||
@Deprecated | @Deprecated | ||||
/** | /** | ||||
* @return the cached provider or null if not set before | * @return the cached provider or null if not set before | ||||
* | * | ||||
* @deprecated in POI 4.1.3 - will be handled by SignatureInfo internally | |||||
* @deprecated in POI 5.0.0 - will be handled by SignatureInfo internally | |||||
*/ | */ | ||||
@Deprecated | @Deprecated | ||||
@Removal(version = "5.0.0") | @Removal(version = "5.0.0") |
/** | /** | ||||
* Remove the chart title. | * Remove the chart title. | ||||
* @since POI 4.1.3 | |||||
* @since POI 5.0.0 | |||||
*/ | */ | ||||
public void removeTitle() { | public void removeTitle() { | ||||
setAutoTitleDeleted(true); | setAutoTitleDeleted(true); |
String getFormatCode(); | String getFormatCode(); | ||||
/** | /** | ||||
* @since POI 4.1.3 | |||||
* @since POI 5.0.0 | |||||
*/ | */ | ||||
@Internal | @Internal | ||||
default void fillNumericalCache(CTNumData cache) { | default void fillNumericalCache(CTNumData cache) { |
/** | /** | ||||
* Insert a new row at the given index. | * Insert a new row at the given index. | ||||
* @param rowIdx the row index. | * @param rowIdx the row index. | ||||
* @since POI 4.1.3 | |||||
* @since POI 5.0.0 | |||||
*/ | */ | ||||
public XSLFTableRow insertRow(int rowIdx) { | public XSLFTableRow insertRow(int rowIdx) { | ||||
if (getNumberOfRows() < rowIdx) { | if (getNumberOfRows() < rowIdx) { |
/** | /** | ||||
* Kept for backwards-compatibility, use {@link Font#TWIPS_PER_POINT} instead. | * Kept for backwards-compatibility, use {@link Font#TWIPS_PER_POINT} instead. | ||||
* @deprecated POI 4.1.3 | |||||
* @deprecated POI 5.0.0 | |||||
*/ | */ | ||||
public static final int TWIPS_PER_POINT = Font.TWIPS_PER_POINT; | public static final int TWIPS_PER_POINT = Font.TWIPS_PER_POINT; | ||||