You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2021/05/02 22:03:02 UTC
svn commit: r1889428 - in /poi:
site/src/documentation/content/xdocs/changes.xml
trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTable.java
Author: kiwiwings
Date: Sun May 2 22:03:02 2021
New Revision: 1889428
URL: http://svn.apache.org/viewvc?rev=1889428&view=rev
Log:
#65085 - LineRect shall throw more specific exceptions
Modified:
poi/site/src/documentation/content/xdocs/changes.xml
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTable.java
Modified: poi/site/src/documentation/content/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/poi/site/src/documentation/content/xdocs/changes.xml?rev=1889428&r1=1889427&r2=1889428&view=diff
==============================================================================
--- poi/site/src/documentation/content/xdocs/changes.xml (original)
+++ poi/site/src/documentation/content/xdocs/changes.xml Sun May 2 22:03:02 2021
@@ -95,6 +95,7 @@
<action type="add" fixes-bug="65206" context="POI_Overall">Migrate ant / maven to gradle build</action>
<action type="fix" fixes-bug="65228" context="XSLF">the method getCap() does not work correctly in xslf.usermodel.XSLFTextRun</action>
<action type="fix" fixes-bug="65214" context="OOXML">Document signed by POI reported as 'partially' signed</action>
+ <action type="fix" fixes-bug="65085" context="HSLF">LineRect shall throw more specific exceptions</action>
</actions>
</release>
Modified: poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTable.java?rev=1889428&r1=1889427&r2=1889428&view=diff
==============================================================================
--- poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTable.java (original)
+++ poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFTable.java Sun May 2 22:03:02 2021
@@ -352,7 +352,7 @@ implements HSLFShapeContainer, TableShap
@Override
public double getRowHeight(int row) {
if (row < 0 || row >= cells.length) {
- throw new IllegalArgumentException("Row index '"+row+"' is not within range [0-"+(cells.length-1)+"]");
+ throw new IndexOutOfBoundsException("Row index '"+row+"' is not within range [0-"+(cells.length-1)+"]");
}
return cells[row][0].getAnchor().getHeight();
@@ -361,7 +361,7 @@ implements HSLFShapeContainer, TableShap
@Override
public void setRowHeight(int row, final double height) {
if (row < 0 || row >= cells.length) {
- throw new IllegalArgumentException("Row index '"+row+"' is not within range [0-"+(cells.length-1)+"]");
+ throw new IndexOutOfBoundsException("Row index '"+row+"' is not within range [0-"+(cells.length-1)+"]");
}
// update row height in the table properties
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org