From 1b4e8ba77ba7a09978370c3864c5b4436788981d Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 12 Dec 2022 18:14:49 +0000 Subject: remove unnecessary short casts for getCellStyleAt git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905938 13f79535-47bb-0310-9956-ffa450edef68 --- poi-examples/src/main/java/org/apache/poi/examples/ss/html/ToHtml.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poi-examples/src/main/java/org') diff --git a/poi-examples/src/main/java/org/apache/poi/examples/ss/html/ToHtml.java b/poi-examples/src/main/java/org/apache/poi/examples/ss/html/ToHtml.java index cf9eeaf5c0..004400c1ec 100644 --- a/poi-examples/src/main/java/org/apache/poi/examples/ss/html/ToHtml.java +++ b/poi-examples/src/main/java/org/apache/poi/examples/ss/html/ToHtml.java @@ -320,7 +320,7 @@ public final class ToHtml { private String styleName(CellStyle style) { if (style == null) { - style = wb.getCellStyleAt((short) 0); + style = wb.getCellStyleAt(0); } StringBuilder sb = new StringBuilder(); try (Formatter fmt = new Formatter(sb, Locale.ROOT)) { -- cgit v1.2.3