From: Javen O'Neal Date: Wed, 6 Apr 2016 00:06:53 +0000 (+0000) Subject: bug 59264: fix findbugs warning 'A boxed value is unboxed and then immediately reboxed.' X-Git-Tag: REL_3_15_BETA2~360 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1472c5fcf2a07eb40699e3a25980ac42f09d8dca;p=poi.git 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 --- diff --git a/src/java/org/apache/poi/ss/util/CellUtil.java b/src/java/org/apache/poi/ss/util/CellUtil.java index 94fa751be5..fc229105e9 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 {