You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2016/04/06 02:06:53 UTC
svn commit: r1737896 -
/poi/trunk/src/java/org/apache/poi/ss/util/CellUtil.java
Author: onealj
Date: Wed Apr 6 00:06:53 2016
New Revision: 1737896
URL: http://svn.apache.org/viewvc?rev=1737896&view=rev
Log:
bug 59264: fix findbugs warning 'A boxed value is unboxed and then immediately reboxed.'
Modified:
poi/trunk/src/java/org/apache/poi/ss/util/CellUtil.java
Modified: poi/trunk/src/java/org/apache/poi/ss/util/CellUtil.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/util/CellUtil.java?rev=1737896&r1=1737895&r2=1737896&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/util/CellUtil.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/util/CellUtil.java Wed Apr 6 00:06:53 2016
@@ -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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org