[bug-69658] use EnumMap elsewhere

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1925251 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2025-04-24 11:25:00 +00:00
parent 691c8baa5a
commit fe0a4f1166

View File

@ -33,7 +33,6 @@ import org.apache.poi.util.Removal;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
@ -412,11 +411,11 @@ public final class PropertyTemplate {
* @param range - {@link CellRangeAddress} range of cells to remove borders.
*/
private void removeBorders(CellRangeAddress range) {
Set<CellPropertyType> properties = new HashSet<>();
properties.add(CellPropertyType.BORDER_TOP);
properties.add(CellPropertyType.BORDER_BOTTOM);
properties.add(CellPropertyType.BORDER_LEFT);
properties.add(CellPropertyType.BORDER_RIGHT);
EnumSet<CellPropertyType> properties = EnumSet.of(
CellPropertyType.BORDER_TOP,
CellPropertyType.BORDER_BOTTOM,
CellPropertyType.BORDER_LEFT,
CellPropertyType.BORDER_RIGHT);
for (int row = range.getFirstRow(); row <= range.getLastRow(); row++) {
for (int col = range.getFirstColumn(); col <= range
.getLastColumn(); col++) {