IntelliJ warnings, deprecation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c31d6686db
commit
d1d01bb632
@ -53,7 +53,6 @@ import org.apache.poi.ss.util.CellAddress;
|
|||||||
import org.apache.poi.ss.util.CellRangeAddress;
|
import org.apache.poi.ss.util.CellRangeAddress;
|
||||||
import org.apache.poi.ss.util.CellReference;
|
import org.apache.poi.ss.util.CellReference;
|
||||||
import org.apache.poi.ss.util.NumberToTextConverter;
|
import org.apache.poi.ss.util.NumberToTextConverter;
|
||||||
import org.apache.poi.util.Internal;
|
|
||||||
import org.apache.poi.util.LocaleUtil;
|
import org.apache.poi.util.LocaleUtil;
|
||||||
import org.apache.poi.util.Removal;
|
import org.apache.poi.util.Removal;
|
||||||
|
|
||||||
@ -306,7 +305,7 @@ public class HSSFCell implements Cell {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case NUMERIC :
|
case NUMERIC :
|
||||||
NumberRecord nrec = null;
|
NumberRecord nrec;
|
||||||
|
|
||||||
if (cellType != _cellType)
|
if (cellType != _cellType)
|
||||||
{
|
{
|
||||||
@ -356,7 +355,7 @@ public class HSSFCell implements Cell {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case BLANK :
|
case BLANK :
|
||||||
BlankRecord brec = null;
|
BlankRecord brec;
|
||||||
|
|
||||||
if (cellType != _cellType)
|
if (cellType != _cellType)
|
||||||
{
|
{
|
||||||
@ -375,7 +374,7 @@ public class HSSFCell implements Cell {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case BOOLEAN :
|
case BOOLEAN :
|
||||||
BoolErrRecord boolRec = null;
|
BoolErrRecord boolRec;
|
||||||
|
|
||||||
if (cellType != _cellType)
|
if (cellType != _cellType)
|
||||||
{
|
{
|
||||||
@ -396,7 +395,7 @@ public class HSSFCell implements Cell {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ERROR :
|
case ERROR :
|
||||||
BoolErrRecord errRec = null;
|
BoolErrRecord errRec;
|
||||||
|
|
||||||
if (cellType != _cellType)
|
if (cellType != _cellType)
|
||||||
{
|
{
|
||||||
@ -574,7 +573,7 @@ public class HSSFCell implements Cell {
|
|||||||
if (_cellType != CellType.STRING) {
|
if (_cellType != CellType.STRING) {
|
||||||
setCellType(CellType.STRING, false, row, col, styleIndex);
|
setCellType(CellType.STRING, false, row, col, styleIndex);
|
||||||
}
|
}
|
||||||
int index = 0;
|
int index;
|
||||||
|
|
||||||
HSSFRichTextString hvalue = (HSSFRichTextString) value;
|
HSSFRichTextString hvalue = (HSSFRichTextString) value;
|
||||||
UnicodeString str = hvalue.getUnicodeString();
|
UnicodeString str = hvalue.getUnicodeString();
|
||||||
@ -1132,8 +1131,6 @@ public class HSSFCell implements Cell {
|
|||||||
* on the cached value of the formula
|
* on the cached value of the formula
|
||||||
*
|
*
|
||||||
* @since POI 4.0
|
* @since POI 4.0
|
||||||
* @return <code>CellType</code> depending
|
|
||||||
* on the cached value of the formula
|
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public CellType getCachedFormulaResultType() {
|
public CellType getCachedFormulaResultType() {
|
||||||
@ -1182,10 +1179,7 @@ public class HSSFCell implements Cell {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isPartOfArrayFormulaGroup() {
|
public boolean isPartOfArrayFormulaGroup() {
|
||||||
if (_cellType != CellType.FORMULA) {
|
return _cellType == CellType.FORMULA && ((FormulaRecordAggregate) _record).isPartOfArrayFormula();
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return ((FormulaRecordAggregate)_record).isPartOfArrayFormula();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -175,8 +175,6 @@ public final class HSSFName implements Name {
|
|||||||
* Case sensitivity: all names are case-insensitive
|
* Case sensitivity: all names are case-insensitive
|
||||||
*
|
*
|
||||||
* Uniqueness: must be unique (for names with the same scope)
|
* Uniqueness: must be unique (for names with the same scope)
|
||||||
*
|
|
||||||
* @param name
|
|
||||||
*/
|
*/
|
||||||
private static void validateName(String name) {
|
private static void validateName(String name) {
|
||||||
|
|
||||||
@ -267,11 +265,9 @@ public final class HSSFName implements Name {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuffer sb = new StringBuffer(64);
|
return getClass().getName() + " [" +
|
||||||
sb.append(getClass().getName()).append(" [");
|
_definedNameRec.getNameText() +
|
||||||
sb.append(_definedNameRec.getNameText());
|
"]";
|
||||||
sb.append("]");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,6 +21,10 @@ package org.apache.poi.hssf.util;
|
|||||||
* Common conversion functions between Excel style A1, C27 style
|
* Common conversion functions between Excel style A1, C27 style
|
||||||
* cell references, and POI usermodel style row=0, column=0
|
* cell references, and POI usermodel style row=0, column=0
|
||||||
* style references.
|
* style references.
|
||||||
|
*
|
||||||
|
* @deprecated POI 4.0.0-SNAPSHOT. Use {@link org.apache.poi.ss.util.CellReference} instead.
|
||||||
|
* Actually the replacement CellReference was added earlier, but the deprecation notice
|
||||||
|
* was added only in 4.0.0-SNAPSHOT.
|
||||||
*/
|
*/
|
||||||
public final class CellReference extends org.apache.poi.ss.util.CellReference {
|
public final class CellReference extends org.apache.poi.ss.util.CellReference {
|
||||||
/**
|
/**
|
||||||
|
@ -111,11 +111,9 @@ public final class CellValue {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuffer sb = new StringBuffer(64);
|
return getClass().getName() + " [" +
|
||||||
sb.append(getClass().getName()).append(" [");
|
formatAsString() +
|
||||||
sb.append(formatAsString());
|
"]";
|
||||||
sb.append("]");
|
|
||||||
return sb.toString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String formatAsString() {
|
public String formatAsString() {
|
||||||
|
@ -76,7 +76,7 @@ public interface FormulaEvaluator {
|
|||||||
* the cell and also its cell type. This method should be preferred over
|
* the cell and also its cell type. This method should be preferred over
|
||||||
* evaluateInCell() when the call should not modify the contents of the
|
* evaluateInCell() when the call should not modify the contents of the
|
||||||
* original cell.
|
* original cell.
|
||||||
* @param cell
|
* @param cell The {@link Cell} to evaluate
|
||||||
*/
|
*/
|
||||||
CellValue evaluate(Cell cell);
|
CellValue evaluate(Cell cell);
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ public interface FormulaEvaluator {
|
|||||||
* Be aware that your cell value will be changed to hold the
|
* Be aware that your cell value will be changed to hold the
|
||||||
* result of the formula. If you simply want the formula
|
* result of the formula. If you simply want the formula
|
||||||
* value computed for you, use {@link #evaluateFormulaCell(Cell)}
|
* value computed for you, use {@link #evaluateFormulaCell(Cell)}
|
||||||
* @param cell
|
* @param cell The {@link Cell} to evaluate and modify.
|
||||||
*/
|
*/
|
||||||
Cell evaluateInCell(Cell cell);
|
Cell evaluateInCell(Cell cell);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user