]> source.dussan.org Git - poi.git/commitdiff
bug 59264: fix findbugs warning 'A boxed value is unboxed and then immediately reboxed.'
authorJaven O'Neal <onealj@apache.org>
Wed, 6 Apr 2016 00:06:53 +0000 (00:06 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 6 Apr 2016 00:06:53 +0000 (00:06 +0000)
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

index 94fa751be53e2d27a09e15323dbefbc9ae91b89d..fc229105e9918360495dd26320dab73cd6590f92 100644 (file)
@@ -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 {