mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Add missing @Deprecated and @Removal
This commit is contained in:
parent
59e595b844
commit
b770a35aba
@ -170,6 +170,7 @@ public class HSSFColor implements Color {
|
||||
* @param color color to extract RGB from
|
||||
* @deprecated use {@link #HSSFColor(int, int, int)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
@Removal(version = "7.0.0")
|
||||
public HSSFColor(int index, int index2, java.awt.Color color) {
|
||||
this(index, index2, color.getRGB());
|
||||
|
||||
@ -40,7 +40,7 @@ import org.apache.poi.ss.usermodel.Sheet;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.util.ExceptionUtil;
|
||||
import org.apache.poi.util.Internal;
|
||||
|
||||
import org.apache.poi.util.Removal;
|
||||
|
||||
/**
|
||||
* Helper methods for when working with Usermodel sheets
|
||||
@ -115,6 +115,8 @@ public class SheetUtil {
|
||||
* @return the width in pixels or -1 if cell is empty
|
||||
* @deprecated since POI 5.2.5, it is better to pass defaultCharWidth as a float
|
||||
*/
|
||||
@Deprecated
|
||||
@Removal(version = "7.0.0")
|
||||
public static double getCellWidth(Cell cell, int defaultCharWidth, DataFormatter formatter, boolean useMergedCells) {
|
||||
return getCellWidth(cell, (float) defaultCharWidth, formatter, useMergedCells);
|
||||
}
|
||||
@ -150,6 +152,8 @@ public class SheetUtil {
|
||||
* @return the width in pixels or -1 if cell is empty
|
||||
* @deprecated since POI 5.2.5, it is better to pass defaultCharWidth as a float
|
||||
*/
|
||||
@Deprecated
|
||||
@Removal(version = "7.0.0")
|
||||
public static double getCellWidth(Cell cell, int defaultCharWidth, DataFormatter formatter, boolean useMergedCells,
|
||||
List<CellRangeAddress> mergedRegions) {
|
||||
return getCellWidth(cell, (float) defaultCharWidth, formatter, useMergedCells, mergedRegions);
|
||||
@ -365,6 +369,8 @@ public class SheetUtil {
|
||||
* @deprecated since POI 5.2.5, it is recommended to switch to {@link #getDefaultCharWidthAsFloat(Workbook)}.
|
||||
*/
|
||||
@Internal
|
||||
@Deprecated
|
||||
@Removal(version = "7.0.0")
|
||||
public static int getDefaultCharWidth(final Workbook wb) {
|
||||
return Math.round(getDefaultCharWidthAsFloat(wb));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user