javadocs, remove unnecessary SuppressWarnings("resource") decorator
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711883 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
682f5b3ed4
commit
6fc1d21367
@ -53,7 +53,7 @@ import org.openxmlformats.schemas.spreadsheetml.x2006.main.STCellType;
|
|||||||
* High level representation of a cell in a row of a spreadsheet.
|
* High level representation of a cell in a row of a spreadsheet.
|
||||||
* <p>
|
* <p>
|
||||||
* Cells can be numeric, formula-based or string-based (text). The cell type
|
* Cells can be numeric, formula-based or string-based (text). The cell type
|
||||||
* specifies this. String cells cannot conatin numbers and numeric cells cannot
|
* specifies this. String cells cannot contain numbers and numeric cells cannot
|
||||||
* contain strings (at least according to our model). Client apps should do the
|
* contain strings (at least according to our model). Client apps should do the
|
||||||
* conversions themselves. Formula cells have the formula string, as well as
|
* conversions themselves. Formula cells have the formula string, as well as
|
||||||
* the formula result, which can be numeric or string.
|
* the formula result, which can be numeric or string.
|
||||||
@ -451,7 +451,6 @@ public final class XSSFCell implements Cell {
|
|||||||
cellFormula.setRef(range.formatAsString());
|
cellFormula.setRef(range.formatAsString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("resource")
|
|
||||||
private void setFormula(String formula, int formulaType) {
|
private void setFormula(String formula, int formulaType) {
|
||||||
XSSFWorkbook wb = _row.getSheet().getWorkbook();
|
XSSFWorkbook wb = _row.getSheet().getWorkbook();
|
||||||
if (formula == null) {
|
if (formula == null) {
|
||||||
@ -524,6 +523,8 @@ public final class XSSFCell implements Cell {
|
|||||||
*
|
*
|
||||||
* @param style reference contained in the workbook.
|
* @param style reference contained in the workbook.
|
||||||
* If the value is null then the style information is removed causing the cell to used the default workbook style.
|
* If the value is null then the style information is removed causing the cell to used the default workbook style.
|
||||||
|
*
|
||||||
|
* @throws IllegalArgumentException if style belongs to a different styles source (most likely because style is from a different workbook)
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void setCellStyle(CellStyle style) {
|
public void setCellStyle(CellStyle style) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user