From 1490ef1c8af1e8982ede024700e777f3876b3f79 Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Sat, 21 Nov 2009 15:49:16 +0000 Subject: [PATCH] fixed javadoc for HSSFSheet.setColumnWidth and XSSFSheet setColumnWidth git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@882931 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/status.xml | 1 + src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java | 2 +- src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index b2c9c100f4..a80cd2e9e6 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -34,6 +34,7 @@ + 48229 - fixed javadoc for HSSFSheet.setColumnWidth and XSSFSheet setColumnWidth 47757 - fixed XLSX2CSV to avoid exception when processing cells with multiple "t" elements 48195 - short-circuit evaluation of IF() and CHOOSE() 48161 - support for text extraction from PPT master slides diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java index 3402147f66..c7972ecc93 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java @@ -431,7 +431,7 @@ public final class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet { * * @param columnIndex - the column to set (0-based) * @param width - the width in units of 1/256th of a character width - * @throws IllegalArgumentException if width > 65536 (the maximum column width in Excel) + * @throws IllegalArgumentException if width > 65280 (the maximum column width in Excel) */ public void setColumnWidth(int columnIndex, int width) { _sheet.setColumnWidth(columnIndex, width); diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java index 76dfabc8e8..879f63357f 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java @@ -1671,7 +1671,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet { * * @param columnIndex - the column to set (0-based) * @param width - the width in units of 1/256th of a character width - * @throws IllegalArgumentException if width > 65536 (the maximum column width in Excel) + * @throws IllegalArgumentException if width > 65280 (the maximum column width in Excel) */ public void setColumnWidth(int columnIndex, int width) { if(width > 255*256) throw new IllegalArgumentException("The maximum column width for an individual cell is 255 characters."); -- 2.39.5