Fix inconsistent whitespace/formatting
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691049 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2eb88db1b0
commit
894029a48f
@ -191,13 +191,11 @@ public final class HSSFConditionalFormattingRule implements ConditionalFormattin
|
|||||||
return toFormulaString(cfRuleRecord.getParsedExpression1());
|
return toFormulaString(cfRuleRecord.getParsedExpression1());
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFormula2()
|
public String getFormula2() {
|
||||||
{
|
|
||||||
byte conditionType = cfRuleRecord.getConditionType();
|
byte conditionType = cfRuleRecord.getConditionType();
|
||||||
if (conditionType == CELL_COMPARISON) {
|
if (conditionType == CELL_COMPARISON) {
|
||||||
byte comparisonOperation = cfRuleRecord.getComparisonOperation();
|
byte comparisonOperation = cfRuleRecord.getComparisonOperation();
|
||||||
switch(comparisonOperation)
|
switch(comparisonOperation) {
|
||||||
{
|
|
||||||
case ComparisonOperator.BETWEEN:
|
case ComparisonOperator.BETWEEN:
|
||||||
case ComparisonOperator.NOT_BETWEEN:
|
case ComparisonOperator.NOT_BETWEEN:
|
||||||
return toFormulaString(cfRuleRecord.getParsedExpression2());
|
return toFormulaString(cfRuleRecord.getParsedExpression2());
|
||||||
@ -206,8 +204,7 @@ public final class HSSFConditionalFormattingRule implements ConditionalFormattin
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String toFormulaString(Ptg[] parsedExpression)
|
private String toFormulaString(Ptg[] parsedExpression) {
|
||||||
{
|
|
||||||
if(parsedExpression ==null) {
|
if(parsedExpression ==null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -25,14 +25,12 @@ import org.apache.poi.ss.usermodel.Color;
|
|||||||
/**
|
/**
|
||||||
* High level representation for Conditional Formatting settings
|
* High level representation for Conditional Formatting settings
|
||||||
*/
|
*/
|
||||||
public class HSSFPatternFormatting implements org.apache.poi.ss.usermodel.PatternFormatting
|
public class HSSFPatternFormatting implements org.apache.poi.ss.usermodel.PatternFormatting {
|
||||||
{
|
|
||||||
private final HSSFWorkbook workbook;
|
private final HSSFWorkbook workbook;
|
||||||
private final CFRuleBase cfRuleRecord;
|
private final CFRuleBase cfRuleRecord;
|
||||||
private final PatternFormatting patternFormatting;
|
private final PatternFormatting patternFormatting;
|
||||||
|
|
||||||
protected HSSFPatternFormatting(CFRuleBase cfRuleRecord, HSSFWorkbook workbook)
|
protected HSSFPatternFormatting(CFRuleBase cfRuleRecord, HSSFWorkbook workbook) {
|
||||||
{
|
|
||||||
this.workbook = workbook;
|
this.workbook = workbook;
|
||||||
this.cfRuleRecord = cfRuleRecord;
|
this.cfRuleRecord = cfRuleRecord;
|
||||||
this.patternFormatting = cfRuleRecord.getPatternFormatting();
|
this.patternFormatting = cfRuleRecord.getPatternFormatting();
|
||||||
|
Loading…
Reference in New Issue
Block a user