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
This commit is contained in:
Javen O'Neal 2016-04-06 00:06:53 +00:00
parent c95f6a4b35
commit b8dcd4df42

View 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 {