mirror of
https://github.com/apache/poi.git
synced 2025-02-22 01:55:12 +00:00
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:
parent
30ff8020a3
commit
5b84aae94c
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user