diff options
author | PJ Fanning <fanningpj@apache.org> | 2017-06-30 13:00:57 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2017-06-30 13:00:57 +0000 |
commit | a420b9090603d46364051710ed74517ad11f5c27 (patch) | |
tree | fa857042ce549d5d6daf3b1662ac1c07f56ac9d7 /src/ooxml | |
parent | 0dff17384fa77ebf9124952ca7c4fdad128742fb (diff) | |
download | poi-a420b9090603d46364051710ed74517ad11f5c27.tar.gz poi-a420b9090603d46364051710ed74517ad11f5c27.zip |
Remove more deprecated code (MissingCellPolicy)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800400 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml')
4 files changed, 3 insertions, 19 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java index d7f935e6b4..ed9a88b3ea 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFChart.java @@ -112,8 +112,6 @@ public final class XSSFChart extends POIXMLDocumentPart implements Chart, ChartA /** * Construct a new CTChartSpace bean. * By default, it's just an empty placeholder for chart objects. - * - * @return a new CTChartSpace bean */ private void createChart() { chartSpace = CTChartSpace.Factory.newInstance(); diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java index d0144bd1d5..2bfef58175 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java @@ -408,7 +408,7 @@ public class XSSFFont implements Font { /** * set the font height in points. * - * @link #setFontHeight + * @see #setFontHeight */ public void setFontHeightInPoints(short height) { setFontHeight((double)height); @@ -608,7 +608,7 @@ public class XSSFFont implements Font { * A font family is a set of fonts having common stroke width and serif characteristics. * * @param family font family - * @link #setFamily(int value) + * @see #setFamily(int value) */ public void setFamily(FontFamily family) { setFamily(family.getValue()); diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java index e936ed554d..35ed242813 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java @@ -281,7 +281,7 @@ public class XSSFRow implements Row, Comparable<XSSFRow> { case CREATE_NULL_AS_BLANK: return (cell == null) ? createCell(cellnum, CellType.BLANK) : cell; default: - throw new IllegalArgumentException("Illegal policy " + policy + " (" + policy.id + ")"); + throw new IllegalArgumentException("Illegal policy " + policy); } } diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java index 0720d8d8b1..b5b4e42cfd 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java @@ -3980,20 +3980,6 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet { } return new XSSFColor(pr.getTabColor(), getWorkbook().getStylesSource().getIndexedColors()); } - - /** - * Set background color of the sheet tab - * - * @param colorIndex the indexed color to set, must be a constant from {@link org.apache.poi.ss.usermodel.IndexedColors} - * @deprecated 3.15-beta2. Removed in 3.17. Use {@link #setTabColor(XSSFColor)}. - */ - @Deprecated - @Removal(version="3.17") - public void setTabColor(int colorIndex) { - IndexedColors indexedColor = IndexedColors.fromInt(colorIndex); - XSSFColor color = new XSSFColor(indexedColor, getWorkbook().getStylesSource().getIndexedColors()); - setTabColor(color); - } /** * Set background color of the sheet tab |