style.getDataFormatString());
CellFormatResult result = cf.apply(cell);
content = result.text;
- if ("".equals(content)) {
+ if (content.isEmpty()) {
content = " ";
}
}
private static File copy(File input) throws IOException {
String extension = input.getName().replaceAll(".*?(\\.[^.]+)?$", "$1");
- if (extension == null || "".equals(extension)) {
+ if (extension == null || extension.isEmpty()) {
extension = ".zip";
}
String rowComment = getCellTextValue(r, SS.COLUMN_ROW_COMMENT, "row comment");
String testName = (currentGroupComment+'\n'+rowComment).replace("null", "").trim().replace("\n", " - ");
- if ("".equals(testName)) {
+ if (testName.isEmpty()) {
testName = evalCell.getCellFormula();
}
assertEquals("Yegor Kozlov", comment.getAuthor());
assertFalse("cells in the second column have not empyy notes",
- "".equals(comment.getString().getString()));
+ comment.getString().getString().isEmpty());
assertEquals(rownum, comment.getRow());
assertEquals(cell.getColumnIndex(), comment.getColumn());
}