Use StringUtils.toString() convenience method

This commit is contained in:
Tom Morris 2014-12-21 11:39:34 -05:00
parent 4eb6eb6eda
commit ea723413cb

View File

@ -51,6 +51,7 @@ import com.google.refine.expr.ExpressionUtils;
import com.google.refine.expr.HasFields; import com.google.refine.expr.HasFields;
import com.google.refine.util.ParsingUtilities; import com.google.refine.util.ParsingUtilities;
import com.google.refine.util.Pool; import com.google.refine.util.Pool;
import com.google.refine.util.StringUtils;
public class Cell implements HasFields, Jsonizable { public class Cell implements HasFields, Jsonizable {
final public Serializable value; final public Serializable value;
@ -193,10 +194,6 @@ public class Cell implements HasFields, Jsonizable {
@Override @Override
public String toString() { public String toString() {
if (value != null){ return StringUtils.toString(value);
return value.toString();
} else {
return "null";
}
} }
} }