aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss/util/CellUtil.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-09-16 08:27:23 +0000
committerDominik Stadler <centic@apache.org>2017-09-16 08:27:23 +0000
commit0cfa1ede4cbc9c00d2f5d3946ae9f57a6dd74d48 (patch)
treeb7f6385f47dbeda7309986def1a4450c64499eb0 /src/java/org/apache/poi/ss/util/CellUtil.java
parent3e70d75cfb84a6eb6ddb06d1028e636cf03914d1 (diff)
downloadpoi-0cfa1ede4cbc9c00d2f5d3946ae9f57a6dd74d48.tar.gz
poi-0cfa1ede4cbc9c00d2f5d3946ae9f57a6dd74d48.zip
Remove unnecessary type arguments (Java 8)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808516 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ss/util/CellUtil.java')
-rw-r--r--src/java/org/apache/poi/ss/util/CellUtil.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/java/org/apache/poi/ss/util/CellUtil.java b/src/java/org/apache/poi/ss/util/CellUtil.java
index 855c284469..cab7d8f49b 100644
--- a/src/java/org/apache/poi/ss/util/CellUtil.java
+++ b/src/java/org/apache/poi/ss/util/CellUtil.java
@@ -75,7 +75,7 @@ public final class CellUtil {
public static final String WRAP_TEXT = "wrapText";
private static final Set<String> shortValues = Collections.unmodifiableSet(
- new HashSet<String>(Arrays.asList(
+ new HashSet<>(Arrays.asList(
BOTTOM_BORDER_COLOR,
LEFT_BORDER_COLOR,
RIGHT_BORDER_COLOR,
@@ -86,20 +86,20 @@ public final class CellUtil {
DATA_FORMAT,
FONT,
ROTATION
- )));
+ )));
private static final Set<String> booleanValues = Collections.unmodifiableSet(
- new HashSet<String>(Arrays.asList(
+ new HashSet<>(Arrays.asList(
LOCKED,
HIDDEN,
WRAP_TEXT
- )));
+ )));
private static final Set<String> borderTypeValues = Collections.unmodifiableSet(
- new HashSet<String>(Arrays.asList(
+ new HashSet<>(Arrays.asList(
BORDER_BOTTOM,
BORDER_LEFT,
BORDER_RIGHT,
BORDER_TOP
- )));
+ )));
@@ -334,7 +334,7 @@ public final class CellUtil {
* @see #setFormatProperties(org.apache.poi.ss.usermodel.CellStyle, org.apache.poi.ss.usermodel.Workbook, java.util.Map)
*/
private static Map<String, Object> getFormatProperties(CellStyle style) {
- Map<String, Object> properties = new HashMap<String, Object>();
+ Map<String, Object> properties = new HashMap<>();
put(properties, ALIGNMENT, style.getAlignmentEnum());
put(properties, VERTICAL_ALIGNMENT, style.getVerticalAlignmentEnum());
put(properties, BORDER_BOTTOM, style.getBorderBottomEnum());