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:
parent
e61655506a
commit
fa816007a7
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user