Fix some warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808519 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5341a131de
commit
356d4a77cb
@ -417,7 +417,7 @@ public class PropertyIDMap implements Map<Long,String> {
|
|||||||
/**
|
/**
|
||||||
* Creates a {@link PropertyIDMap} backed by another map.
|
* Creates a {@link PropertyIDMap} backed by another map.
|
||||||
*
|
*
|
||||||
* @param map The instance to be created is backed by this map.
|
* @param idValues an array of key/value pairs via nested Object[2] arrays
|
||||||
*/
|
*/
|
||||||
private PropertyIDMap(Object[][] idValues) {
|
private PropertyIDMap(Object[][] idValues) {
|
||||||
Map<Long,String> m = new HashMap<>(idValues.length);
|
Map<Long,String> m = new HashMap<>(idValues.length);
|
||||||
|
@ -550,10 +550,7 @@ public class XSSFCellStyle implements CellStyle {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean getHidden() {
|
public boolean getHidden() {
|
||||||
if (!_cellXf.isSetProtection() || !_cellXf.getProtection().isSetHidden()) {
|
return _cellXf.isSetProtection() && _cellXf.getProtection().isSetHidden() && _cellXf.getProtection().getHidden();
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return _cellXf.getProtection().getHidden();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -622,10 +619,7 @@ public class XSSFCellStyle implements CellStyle {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean getLocked() {
|
public boolean getLocked() {
|
||||||
if (!_cellXf.isSetProtection() || !_cellXf.getProtection().isSetLocked()) {
|
return !_cellXf.isSetProtection() || !_cellXf.getProtection().isSetLocked() || _cellXf.getProtection().getLocked();
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return _cellXf.getProtection().getLocked();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user