This call to StringUtils did very little for the following conditional structure. Consolidated code and removed dependency on lang.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark R. Diggory 2004-06-04 13:53:12 +00:00
parent 55e74ff9d0
commit 5453c55ee3
1 changed files with 9 additions and 9 deletions

View File

@ -27,8 +27,6 @@ import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import java.util.Map; import java.util.Map;
//import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.math.TestUtils; import org.apache.commons.math.TestUtils;
import org.apache.commons.math.stat.univariate.DescriptiveStatistics; import org.apache.commons.math.stat.univariate.DescriptiveStatistics;
import org.apache.commons.math.stat.univariate.SummaryStatistics; import org.apache.commons.math.stat.univariate.SummaryStatistics;
@ -36,7 +34,7 @@ import org.apache.commons.math.stat.univariate.SummaryStatistics;
import junit.framework.TestCase; import junit.framework.TestCase;
/** /**
* @version $Revision: 1.4 $ $Date: 2004/06/01 23:40:29 $ * @version $Revision: 1.5 $ $Date: 2004/06/04 13:53:12 $
*/ */
public abstract class CertifiedDataAbstractTest extends TestCase { public abstract class CertifiedDataAbstractTest extends TestCase {
@ -63,12 +61,14 @@ public abstract class CertifiedDataAbstractTest extends TestCase {
String line = in.readLine(); String line = in.readLine();
while (line != null) { while (line != null) {
line = StringUtils.trimToNull(line);
if (line == null) { /* this call to StringUtils did little for the
// empty line * following conditional structure
} else if (line.startsWith("#")) { */
// comment line = line.trim();
} else {
// not empty line or comment
if (!("".equals(line) || line.startsWith("#"))) {
int n = line.indexOf('='); int n = line.indexOf('=');
if (n == -1) { if (n == -1) {
// data value // data value