diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java index 5ca6b3b2ea..782e21bee7 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java @@ -43,8 +43,8 @@ import org.apache.poi.xssf.usermodel.XSSFHyperlink; import org.apache.poi.xssf.usermodel.XSSFRichTextString; /** - * Streaming version of XSSFRow implementing the "BigGridDemo" strategy. -*/ + * Streaming version of XSSFCell implementing the "BigGridDemo" strategy. + */ public class SXSSFCell implements Cell { private static final POILogger logger = POILogFactory.getLogger(SXSSFCell.class); @@ -53,7 +53,7 @@ public class SXSSFCell implements Cell { private CellStyle _style; private Property _firstProperty; - public SXSSFCell(SXSSFRow row,CellType cellType) + public SXSSFCell(SXSSFRow row, CellType cellType) { _row=row; setType(cellType); @@ -268,8 +268,8 @@ public class SXSSFCell implements Cell { /** * Set a rich string value for the cell. * - * @param value value to set the cell to. For formulas we'll set the formula - * string, for String cells we'll set its value. For other types we will + * @param value value to set the cell to. For formulas: we'll set the formula + * string, for String cells: we'll set its value. For other types we will * change the cell to a string cell and set its value. * If value is null then we will change the cell to a Blank cell. */ @@ -284,9 +284,7 @@ public class SXSSFCell implements Cell { if (xvalue.length() > SpreadsheetVersion.EXCEL2007.getMaxTextLength()) { throw new IllegalArgumentException("The maximum length of cell contents (text) is 32,767 characters"); } - if (xvalue.hasFormatting()) - logger.log(POILogger.WARN, "SXSSF doesn't support Shared Strings, rich text formatting information has be lost"); - + ((RichTextValue)_value).setValue(xvalue); } else { setCellType(CellType.BLANK); diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java index c8d2f7674f..868885c9e9 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java @@ -130,7 +130,7 @@ public class SXSSFRow implements Row, Comparable * * @param column - the column number this cell represents * @return Cell a high level representation of the created cell. - * @throws IllegalArgumentException if columnIndex < 0 or greate than a maximum number of supported columns + * @throws IllegalArgumentException if columnIndex < 0 or greater than a maximum number of supported columns * (255 for *.xls, 1048576 for *.xlsx) */ @Override