case Ptg.CLASS_ARRAY :
buf.append("ARRAY");
break;
+ default:
+ throwInvalidRVAToken(token);
}
buf.append(sep);
case Ptg.CLASS_ARRAY :
buf.append("ARRAY");
break;
+ default:
+ throwInvalidRVAToken(token);
}
}else {
buf.append("VALUE");
case Ptg.CLASS_ARRAY :
buf.append("(A)");
break;
+ default:
+ throwInvalidRVAToken(token);
}
buf.append(' ');
}
return buf.toString();
}
+ private static void throwInvalidRVAToken(Ptg token) {
+ throw new IllegalStateException("Invalid RVA type (" + token.getPtgClass() + "). This should never happen.");
+ }
+
private static String composeFormula(FormulaRecord record)
{
if (log.check( POILogger.DEBUG ))
log.log(DEBUG, "found NameComment at " + k);
retval.commentRecords.put(ncr.getNameText(), ncr);
- default :
+ break;
+ default:
+ if (log.check( POILogger.DEBUG ))
+ log.log(DEBUG, "ignoring record (sid=" + rec.getSid() + ") at " + k);
+ break;
}
records.add(rec);
}
case HyperlinkRecord.sid:
retval.hyperlinks.add((HyperlinkRecord)rec);
break;
+ default:
+ break;
}
}
retval.setAdtlPaletteOptions(( short ) 0);
retval.setFillPaletteOptions(( short ) 0x20c0);
break;
+
+ default:
+ throw new IllegalStateException("Unrecognized format id: " + id);
}
return retval;
}
retval.setBuiltinStyle(5);
retval.setOutlineStyleLevel(( byte ) 0xffffffff);
break;
+
+ default:
+ throw new IllegalStateException("Unrecognized style id: " + id);
}
return retval;
}
case CELL_TYPE_FORMULA :
_stringValue=new HSSFRichTextString(((FormulaRecordAggregate) cval).getStringValue());
break;
+
+ default :
+ break;
}
}
errRec.setRow(row);
_record = errRec;
break;
+ default :
+ throw new IllegalStateException("Invalid cell type: " + cellType);
}
if (cellType != _cellType &&
_cellType!=-1 ) // Special Value to indicate an uninitialized Cell
case HSSFHyperlink.LINK_DOCUMENT:
link.setLabel("place");
break;
+ default:
+ break;
}
List<RecordBase> records = _sheet.getSheet().getRecords();