aboutsummaryrefslogtreecommitdiffstats
path: root/poi-examples
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-12-12 18:14:49 +0000
committerPJ Fanning <fanningpj@apache.org>2022-12-12 18:14:49 +0000
commit1b4e8ba77ba7a09978370c3864c5b4436788981d (patch)
tree850bb7f953b2e0a198f284138c83e32d243dd2fd /poi-examples
parent7454a722f0d408afc605cb1b3cbb2daa9c5c913c (diff)
downloadpoi-1b4e8ba77ba7a09978370c3864c5b4436788981d.tar.gz
poi-1b4e8ba77ba7a09978370c3864c5b4436788981d.zip
remove unnecessary short casts for getCellStyleAt
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905938 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-examples')
-rw-r--r--poi-examples/src/main/java/org/apache/poi/examples/ss/html/ToHtml.java2
1 files changed, 1 insertions, 1 deletions
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)) {