@@ -282,19 +282,27 @@ public String getCellFormula() {
282
282
*/
283
283
@ Override
284
284
public int getCachedFormulaResultType () {
285
+ return getCachedFormulaResultTypeEnum ().getCode ();
286
+ }
287
+
288
+ /**
289
+ * Not supported
290
+ */
291
+ @ Override
292
+ public CellType getCachedFormulaResultTypeEnum () {
285
293
if (type != null && "str" .equals (type )) {
286
294
if (contents == null || cachedFormulaResultType == null ) {
287
- return CELL_TYPE_BLANK ;
295
+ return CellType . BLANK ;
288
296
} else if ("n" .equals (cachedFormulaResultType )) {
289
- return CELL_TYPE_NUMERIC ;
297
+ return CellType . NUMERIC ;
290
298
} else if ("s" .equals (cachedFormulaResultType ) || "inlineStr" .equals (cachedFormulaResultType )) {
291
- return CELL_TYPE_STRING ;
299
+ return CellType . STRING ;
292
300
} else if ("str" .equals (cachedFormulaResultType )) {
293
- return CELL_TYPE_FORMULA ;
301
+ return CellType . FORMULA ;
294
302
} else if ("b" .equals (cachedFormulaResultType )) {
295
- return CELL_TYPE_BOOLEAN ;
303
+ return CellType . BOOLEAN ;
296
304
} else if ("e" .equals (cachedFormulaResultType )) {
297
- return CELL_TYPE_ERROR ;
305
+ return CellType . ERROR ;
298
306
} else {
299
307
throw new UnsupportedOperationException ("Unsupported cell type '" + cachedFormulaResultType + "'" );
300
308
}
@@ -304,14 +312,6 @@ public int getCachedFormulaResultType() {
304
312
}
305
313
}
306
314
307
- /**
308
- * Not supported
309
- */
310
- @ Override
311
- public CellType getCachedFormulaResultTypeEnum () {
312
- throw new NotSupportedException ();
313
- }
314
-
315
315
/* Not supported */
316
316
317
317
/**
0 commit comments