From 76d43d74b5a9f62a7bf5663696638467e5afb26a Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Walter?= Date: Tue, 5 Nov 2013 20:46:20 +0000 Subject: [PATCH] fixed red build, cause by invalid java 5 method isEmpty and unmappable character for encoding ASCII git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1539127 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/formula/functions/BaseNumberUtils.java | 2 +- src/java/org/apache/poi/ss/formula/functions/Mirr.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java b/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java index 110e869fbd..ceb7b654d2 100644 --- a/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java +++ b/src/java/org/apache/poi/ss/formula/functions/BaseNumberUtils.java @@ -25,7 +25,7 @@ public class BaseNumberUtils { public static double convertToDecimal(String value, int base, int maxNumberOfPlaces) throws IllegalArgumentException { - if (value.isEmpty()) { + if (value != null && value.length() != 0) { return 0.0; } diff --git a/src/java/org/apache/poi/ss/formula/functions/Mirr.java b/src/java/org/apache/poi/ss/formula/functions/Mirr.java index aa9ec58927..e98433976a 100644 --- a/src/java/org/apache/poi/ss/formula/functions/Mirr.java +++ b/src/java/org/apache/poi/ss/formula/functions/Mirr.java @@ -37,7 +37,7 @@ import org.apache.poi.ss.formula.eval.EvaluationException; * Reinvest_rate is the interest rate you receive on the cash flows as you reinvest them. * * @author Carlos Delgado (carlos dot del dot est at gmail dot com) - * @author Cédric Walter (cedric dot walter at gmail dot com) + * @author Cedric Walter (cedric dot walter at gmail dot com) * * @see Wikipedia on MIRR * @see Excel MIRR -- 2.39.5