More whitespace / indent updates
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1690497 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1610f82ae7
commit
13144e3301
@ -37,8 +37,7 @@ public class CFHeaderRecord extends StandardRecord {
|
||||
private CellRangeAddressList field_4_cell_ranges;
|
||||
|
||||
/** Creates new CFHeaderRecord */
|
||||
public CFHeaderRecord()
|
||||
{
|
||||
public CFHeaderRecord() {
|
||||
field_4_cell_ranges = new CellRangeAddressList();
|
||||
}
|
||||
public CFHeaderRecord(CellRangeAddress[] regions, int nRules) {
|
||||
@ -76,13 +75,11 @@ public class CFHeaderRecord extends StandardRecord {
|
||||
else field_2_need_recalculation_and_id--;
|
||||
}
|
||||
|
||||
public int getID()
|
||||
{
|
||||
public int getID() {
|
||||
// Remaining 15 bits of field 2
|
||||
return field_2_need_recalculation_and_id>>1;
|
||||
}
|
||||
public void setID(int id)
|
||||
{
|
||||
public void setID(int id) {
|
||||
// Remaining 15 bits of field 2
|
||||
boolean needsRecalc = getNeedRecalculation();
|
||||
field_2_need_recalculation_and_id = (id<<1);
|
||||
@ -102,14 +99,12 @@ public class CFHeaderRecord extends StandardRecord {
|
||||
* @param cellRanges - list of CellRange objects
|
||||
*/
|
||||
public void setCellRanges(CellRangeAddress[] cellRanges) {
|
||||
if(cellRanges == null)
|
||||
{
|
||||
if(cellRanges == null) {
|
||||
throw new IllegalArgumentException("cellRanges must not be null");
|
||||
}
|
||||
CellRangeAddressList cral = new CellRangeAddressList();
|
||||
CellRangeAddress enclosingRange = null;
|
||||
for (int i = 0; i < cellRanges.length; i++)
|
||||
{
|
||||
for (int i = 0; i < cellRanges.length; i++) {
|
||||
CellRangeAddress cr = cellRanges[i];
|
||||
enclosingRange = CellRangeUtil.createEnclosingCellRange(cr, enclosingRange);
|
||||
cral.addCellRangeAddress(cr);
|
||||
@ -134,8 +129,7 @@ public class CFHeaderRecord extends StandardRecord {
|
||||
buffer.append(" .needRecalc = ").append(getNeedRecalculation()).append("\n");
|
||||
buffer.append(" .enclosingCellRange= ").append(getEnclosingCellRange()).append("\n");
|
||||
buffer.append(" .cfranges=[");
|
||||
for( int i=0; i<field_4_cell_ranges.countRanges(); i++)
|
||||
{
|
||||
for( int i=0; i<field_4_cell_ranges.countRanges(); i++) {
|
||||
buffer.append(i==0?"":",").append(field_4_cell_ranges.getCellRangeAddress(i).toString());
|
||||
}
|
||||
buffer.append("]\n");
|
||||
|
@ -62,10 +62,6 @@ import org.apache.poi.hssf.record.pivottable.ViewSourceRecord;
|
||||
* Description: Takes a stream and outputs an array of Record objects.<P>
|
||||
*
|
||||
* @see org.apache.poi.hssf.eventmodel.EventRecordFactory
|
||||
* @author Andrew C. Oliver (acoliver at apache dot org)
|
||||
* @author Marc Johnson (mjohnson at apache dot org)
|
||||
* @author Glen Stampoultzis (glens at apache.org)
|
||||
* @author Csaba Nagy (ncsaba at yahoo dot com)
|
||||
*/
|
||||
public final class RecordFactory {
|
||||
private static final int NUM_RECORDS = 512;
|
||||
@ -111,7 +107,6 @@ public final class RecordFactory {
|
||||
* be of a different class to the declaring class.
|
||||
*/
|
||||
private static final class ReflectionMethodRecordCreator implements I_RecordCreator {
|
||||
|
||||
private final Method _m;
|
||||
public ReflectionMethodRecordCreator(Method m) {
|
||||
_m = m;
|
||||
@ -134,7 +129,6 @@ public final class RecordFactory {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static final Class<?>[] CONSTRUCTOR_ARGS = { RecordInputStream.class, };
|
||||
|
||||
/**
|
||||
@ -314,7 +308,6 @@ public final class RecordFactory {
|
||||
* are returned digested into the non-mul form.
|
||||
*/
|
||||
public static Record [] createRecord(RecordInputStream in) {
|
||||
|
||||
Record record = createSingleRecord(in);
|
||||
if (record instanceof DBCellRecord) {
|
||||
// Not needed by POI. Regenerated from scratch by POI when spreadsheet is written
|
||||
|
Loading…
Reference in New Issue
Block a user