bug 59833: add @Removal annotation to deprecated methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1760623 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6839a52aa3
commit
5d1ae2cbae
@ -32,6 +32,7 @@ import org.apache.poi.ss.usermodel.FillPatternType;
|
||||
import org.apache.poi.ss.usermodel.Font;
|
||||
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||
import org.apache.poi.ss.usermodel.VerticalAlignment;
|
||||
import org.apache.poi.util.Removal;
|
||||
|
||||
/**
|
||||
* High level representation of the style of a cell in a sheet of a workbook.
|
||||
@ -254,6 +255,7 @@ public final class HSSFCellStyle implements CellStyle {
|
||||
* @see #ALIGN_CENTER_SELECTION
|
||||
* @deprecated POI 3.15 beta 3. Use {@link #setAlignment(HorizontalAlignment)} instead.
|
||||
*/
|
||||
@Removal(version="3.17")
|
||||
@Override
|
||||
public void setAlignment(short align)
|
||||
{
|
||||
|
@ -28,6 +28,7 @@ import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||
import org.apache.poi.ss.usermodel.VerticalAlignment;
|
||||
import org.apache.poi.util.Internal;
|
||||
import org.apache.poi.util.Removal;
|
||||
import org.apache.poi.xssf.model.StylesTable;
|
||||
import org.apache.poi.xssf.model.ThemesTable;
|
||||
import org.apache.poi.xssf.usermodel.extensions.XSSFCellAlignment;
|
||||
@ -1121,7 +1122,9 @@ public class XSSFCellStyle implements CellStyle {
|
||||
* @see #setFillBackgroundColor(short)
|
||||
* @see #setFillForegroundColor(short)
|
||||
* @param fp fill pattern (set to {@link org.apache.poi.ss.usermodel.CellStyle#SOLID_FOREGROUND} to fill w/foreground color)
|
||||
* @deprecated POI 3.15. Use {@link #setFillPattern(FillPatternType)} instead.
|
||||
*/
|
||||
@Removal(version="3.17")
|
||||
@Override
|
||||
public void setFillPattern(short fp) {
|
||||
setFillPattern(FillPatternType.forInt(fp));
|
||||
|
Loading…
Reference in New Issue
Block a user