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:
parent
55e74ff9d0
commit
5453c55ee3
|
@ -27,8 +27,6 @@ import java.util.HashMap;
|
|||
import java.util.Iterator;
|
||||
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.stat.univariate.DescriptiveStatistics;
|
||||
import org.apache.commons.math.stat.univariate.SummaryStatistics;
|
||||
|
@ -36,7 +34,7 @@ import org.apache.commons.math.stat.univariate.SummaryStatistics;
|
|||
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 {
|
||||
|
||||
|
@ -63,12 +61,14 @@ public abstract class CertifiedDataAbstractTest extends TestCase {
|
|||
|
||||
String line = in.readLine();
|
||||
while (line != null) {
|
||||
line = StringUtils.trimToNull(line);
|
||||
if (line == null) {
|
||||
// empty line
|
||||
} else if (line.startsWith("#")) {
|
||||
// comment
|
||||
} else {
|
||||
|
||||
/* this call to StringUtils did little for the
|
||||
* following conditional structure
|
||||
*/
|
||||
line = line.trim();
|
||||
|
||||
// not empty line or comment
|
||||
if (!("".equals(line) || line.startsWith("#"))) {
|
||||
int n = line.indexOf('=');
|
||||
if (n == -1) {
|
||||
// data value
|
||||
|
|
Loading…
Reference in New Issue