Consistent whitespace/indents

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2015-07-13 20:12:50 +00:00
parent 4632e35c3d
commit 659af54686

View File

@ -73,8 +73,7 @@ import org.apache.poi.ss.util.CellRangeAddress;
* sheet.addConditionalFormatting(regions, rule);
* </PRE>
*/
public final class HSSFConditionalFormatting implements ConditionalFormatting
{
public final class HSSFConditionalFormatting implements ConditionalFormatting {
private final HSSFWorkbook _workbook;
private final CFRecordsAggregate cfAggregate;
@ -83,8 +82,7 @@ public final class HSSFConditionalFormatting implements ConditionalFormatting
// TODO Support types beyond CELL_VALUE_IS and FORMULA
HSSFConditionalFormatting(HSSFWorkbook workbook, CFRecordsAggregate cfAggregate)
{
HSSFConditionalFormatting(HSSFWorkbook workbook, CFRecordsAggregate cfAggregate) {
if(workbook == null) {
throw new IllegalArgumentException("workbook must not be null");
}
@ -101,8 +99,7 @@ public final class HSSFConditionalFormatting implements ConditionalFormatting
/**
* @deprecated (Aug-2008) use {@link HSSFConditionalFormatting#getFormattingRanges()}
*/
public org.apache.poi.ss.util.Region[] getFormattingRegions()
{
public org.apache.poi.ss.util.Region[] getFormattingRegions() {
CellRangeAddress[] cellRanges = getFormattingRanges();
return org.apache.poi.ss.util.Region.convertCellRangesToRegions(cellRanges);
}
@ -121,8 +118,7 @@ public final class HSSFConditionalFormatting implements ConditionalFormatting
* @param idx position of the rule. Should be between 0 and 2.
* @param cfRule - Conditional Formatting rule
*/
public void setRule(int idx, HSSFConditionalFormattingRule cfRule)
{
public void setRule(int idx, HSSFConditionalFormattingRule cfRule) {
cfAggregate.setRule(idx, cfRule.getCfRuleRecord());
}
@ -135,8 +131,7 @@ public final class HSSFConditionalFormatting implements ConditionalFormatting
* Excel allows to create up to 3 Conditional Formatting rules.
* @param cfRule - Conditional Formatting rule
*/
public void addRule(HSSFConditionalFormattingRule cfRule)
{
public void addRule(HSSFConditionalFormattingRule cfRule) {
cfAggregate.addRule(cfRule.getCfRuleRecord());
}
@ -147,8 +142,7 @@ public final class HSSFConditionalFormatting implements ConditionalFormatting
/**
* @return the Conditional Formatting rule at position idx.
*/
public HSSFConditionalFormattingRule getRule(int idx)
{
public HSSFConditionalFormattingRule getRule(int idx) {
CFRuleBase ruleRecord = cfAggregate.getRule(idx);
return new HSSFConditionalFormattingRule(_workbook, ruleRecord);
}
@ -156,13 +150,11 @@ public final class HSSFConditionalFormatting implements ConditionalFormatting
/**
* @return number of Conditional Formatting rules.
*/
public int getNumberOfRules()
{
public int getNumberOfRules() {
return cfAggregate.getNumberOfRules();
}
public String toString()
{
public String toString() {
return cfAggregate.toString();
}
}