IntelliJ: simplify boolean logic
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1812363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7eb6686b1d
commit
bcbadce32e
@ -196,11 +196,10 @@ public class AreaReference {
|
|||||||
// These are represented as something like
|
// These are represented as something like
|
||||||
// C$1:C$65535 or D$1:F$0
|
// C$1:C$65535 or D$1:F$0
|
||||||
// i.e. absolute from 1st row to 0th one
|
// i.e. absolute from 1st row to 0th one
|
||||||
if(topLeft.getRow() == 0 && topLeft.isRowAbsolute() &&
|
return (topLeft.getRow() == 0
|
||||||
botRight.getRow() == version.getLastRowIndex() && botRight.isRowAbsolute()) {
|
&& topLeft.isRowAbsolute()
|
||||||
return true;
|
&& botRight.getRow() == version.getLastRowIndex()
|
||||||
}
|
&& botRight.isRowAbsolute());
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
public boolean isWholeColumnReference() {
|
public boolean isWholeColumnReference() {
|
||||||
return isWholeColumnReference(_version, _firstCell, _lastCell);
|
return isWholeColumnReference(_version, _firstCell, _lastCell);
|
||||||
|
@ -318,11 +318,7 @@ public class SheetUtil {
|
|||||||
copyAttributes(font, str, 0, "1w".length());
|
copyAttributes(font, str, 0, "1w".length());
|
||||||
|
|
||||||
TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
|
TextLayout layout = new TextLayout(str.getIterator(), fontRenderContext);
|
||||||
if(layout.getBounds().getWidth() > 0) {
|
return (layout.getBounds().getWidth() > 0);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user