Use StringUtils.toString() convenience method
This commit is contained in:
parent
4eb6eb6eda
commit
ea723413cb
@ -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";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user