From b8dcd4df42b7c532fc3202567cd015aa554c42a8 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Wed, 6 Apr 2016 00:06:53 +0000 Subject: [PATCH] bug 59264: fix findbugs warning 'A boxed value is unboxed and then immediately reboxed.' git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1737896 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/ss/util/CellUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/ss/util/CellUtil.java b/src/java/org/apache/poi/ss/util/CellUtil.java index 94fa751be..fc229105e 100644 --- a/src/java/org/apache/poi/ss/util/CellUtil.java +++ b/src/java/org/apache/poi/ss/util/CellUtil.java @@ -362,7 +362,7 @@ public final class CellUtil { } // @deprecated 3.15 beta 2. getBorderStyle will only work on BorderStyle enums instead of codes in the future. else if (value instanceof Short) { - short code = Short.valueOf((Short) value); + short code = ((Short) value).shortValue(); border = BorderStyle.valueOf(code); } else {