Author: centic
Date: Fri Mar 10 08:08:16 2023
New Revision: 1908240
URL: http://svn.apache.org/viewvc?rev=1908240&view=rev
Log:
Update/fix JavaDoc and add "throws"
Modified:
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/StoragePropertiesChunk.java
poi/trunk/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java
Modified:
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/StoragePropertiesChunk.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/StoragePropertiesChunk.java?rev=1908240&r1=1908239&r2=1908240&view=diff
==============================================================================
---
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/StoragePropertiesChunk.java
(original)
+++
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/StoragePropertiesChunk.java
Fri Mar 10 08:08:16 2023
@@ -54,7 +54,7 @@ public class StoragePropertiesChunk exte
* Writes out pre-calculated header values which assume any variable
length property `data`
* field to already have Size and Reserved
* @param out output stream (calling code must close this stream)
- * @throws IOException
+ * @throws IOException If writing to the stream fails
*/
public void writePreCalculatedValue(OutputStream out) throws IOException {
// 8 bytes of reserved zeros
Modified: poi/trunk/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java?rev=1908240&r1=1908239&r2=1908240&view=diff
==============================================================================
--- poi/trunk/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java
(original)
+++ poi/trunk/poi/src/main/java/org/apache/poi/util/ExceptionUtil.java Fri Mar
10 08:08:16 2023
@@ -49,8 +49,11 @@ public class ExceptionUtil {
* </p>
*
* @param throwable to check
+ * @throws Error the input throwable if it is an <code>Error</code>.
+ * @throws RuntimeException the input throwable if it is an
<code>RuntimeException</code>
+ * Otherwise wraps the throwable in a RuntimeException.
*/
- public static void rethrow(Throwable throwable) {
+ public static void rethrow(Throwable throwable) throws Error,
RuntimeException {
if (throwable instanceof Error) {
throw (Error) throwable;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]