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:
parent
c95f6a4b35
commit
b8dcd4df42
@ -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.
|
// @deprecated 3.15 beta 2. getBorderStyle will only work on BorderStyle enums instead of codes in the future.
|
||||||
else if (value instanceof Short) {
|
else if (value instanceof Short) {
|
||||||
short code = Short.valueOf((Short) value);
|
short code = ((Short) value).shortValue();
|
||||||
border = BorderStyle.valueOf(code);
|
border = BorderStyle.valueOf(code);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user