1
0
mirror of https://github.com/apache/poi.git synced 2025-02-17 07:24:48 +00:00

[bug-64605] update javadocs

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879960 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2020-07-16 14:51:23 +00:00
parent 41cedc65fc
commit 38220f65b0
2 changed files with 19 additions and 2 deletions
src/ooxml/java/org/apache/poi/xwpf/usermodel

@ -17,6 +17,7 @@
package org.apache.poi.xwpf.usermodel;
import org.apache.poi.util.Removal;
import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRPr;
import java.math.BigDecimal;
@ -37,11 +38,26 @@ public class XWPFDefaultRunStyle {
return rpr;
}
/**
* Specifies the font size.
*
* @return value representing the font size (non-integer size will be rounded with half rounding up,
* -1 is returned if size not set)
* @deprecated use {@link #getFontSizeAsDouble()}
*/
@Deprecated
@Removal(version = "6.0.0")
public int getFontSize() {
BigDecimal bd = getFontSizeAsBigDecimal(0);
return bd == null ? -1 : bd.intValue();
}
/**
* Specifies the font size.
*
* @return value representing the font size (can be null if size is not set)
* @since POI 5.0.0
*/
public Double getFontSizeAsDouble() {
BigDecimal bd = getFontSizeAsBigDecimal(1);
return bd == null ? null : bd.doubleValue();

@ -867,7 +867,8 @@ public class XWPFRun implements ISDTContents, IRunElement, CharacterRun {
* Specifies the font size which shall be applied to all non complex script
* characters in the contents of this run when displayed.
*
* @return value representing the font size (non-integer size will be rounded with half rounding up)
* @return value representing the font size (non-integer size will be rounded with half rounding up,
* -1 is returned if size not set)
* @deprecated use {@link #getFontSizeAsDouble()}
*/
@Deprecated
@ -882,7 +883,7 @@ public class XWPFRun implements ISDTContents, IRunElement, CharacterRun {
* Specifies the font size which shall be applied to all non complex script
* characters in the contents of this run when displayed.
*
* @return value representing the font size
* @return value representing the font size (can be null if size not set)
* @since POI 5.0.0
*/
@Override