Fixed copy-and-paste string mistake in BlankDownOperation.

Fixed minor bug in Row.isValueBlank that returns true for non-string values.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1157 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-08-16 02:16:41 +00:00
parent e61655506a
commit fa816007a7
2 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ public class Row implements HasFields, Jsonizable {
}
protected boolean isValueBlank(Object value) {
return value == null || !(value instanceof String) || ((String) value).trim().length() == 0;
return value == null || (value instanceof String && ((String) value).trim().length() == 0);
}
public void setCell(int cellIndex, Cell cell) {

View File

@ -48,13 +48,13 @@ public class BlankDownOperation extends EngineDependentMassCellOperation {
}
protected String getBriefDescription(Project project) {
return "Fill down cells in column " + _columnName;
return "Blank down cells in column " + _columnName;
}
protected String createDescription(Column column,
List<CellChange> cellChanges) {
return "Fill down " + cellChanges.size() +
return "Blank down " + cellChanges.size() +
" cells in column " + column.getName();
}