Update/fix JavaDoc and add "throws"

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1908240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2023-03-10 08:08:16 +00:00
parent 30ff8020a3
commit 5b84aae94c
2 changed files with 5 additions and 2 deletions

View File

@ -54,7 +54,7 @@ public class StoragePropertiesChunk extends PropertiesChunk {
* 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

View File

@ -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;
}