mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
[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:
parent
691c8baa5a
commit
fe0a4f1166
@ -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++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user