aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java')
-rw-r--r--src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java b/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
index 514c841fc4..3cef98c4de 100644
--- a/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
+++ b/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
@@ -19,12 +19,17 @@ package org.apache.poi.hssf.util;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.ss.usermodel.BorderStyle;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.ss.util.RegionUtil;
+import org.apache.poi.util.Removal;
/**
* Various utility functions that make working with a region of cells easier.
+ * @deprecated POI 3.18
+ * @see RegionUtil
*/
+@Removal(version="3.20")
public final class HSSFRegionUtil {
private HSSFRegionUtil() {
@@ -42,7 +47,7 @@ public final class HSSFRegionUtil {
*/
public static void setBorderLeft(int border, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBorderLeft(border, region, sheet);
+ RegionUtil.setBorderLeft(BorderStyle.valueOf((short)border), region, sheet);
}
/**
@@ -68,7 +73,7 @@ public final class HSSFRegionUtil {
*/
public static void setBorderRight(int border, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBorderRight(border, region, sheet);
+ RegionUtil.setBorderRight(BorderStyle.valueOf((short)border), region, sheet);
}
/**
@@ -94,7 +99,7 @@ public final class HSSFRegionUtil {
*/
public static void setBorderBottom(int border, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBorderBottom(border, region, sheet);
+ RegionUtil.setBorderBottom(BorderStyle.valueOf((short)border), region, sheet);
}
/**
@@ -120,7 +125,7 @@ public final class HSSFRegionUtil {
*/
public static void setBorderTop(int border, CellRangeAddress region, HSSFSheet sheet,
HSSFWorkbook workbook) {
- RegionUtil.setBorderTop(border, region, sheet);
+ RegionUtil.setBorderTop(BorderStyle.valueOf((short)border), region, sheet);
}
/**