From: Andreas Beeker Date: Mon, 27 Oct 2014 00:36:13 +0000 (+0000) Subject: Bug 57143 - Javadocs and throws clause for WorkbookUtil X-Git-Tag: REL_3_11_BETA3~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4112a026f9b150b90e0f782750070c817bbc15fd;p=poi.git Bug 57143 - Javadocs and throws clause for WorkbookUtil git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1634412 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/ss/util/WorkbookUtil.java b/src/java/org/apache/poi/ss/util/WorkbookUtil.java index 71ad99e691..684434823c 100644 --- a/src/java/org/apache/poi/ss/util/WorkbookUtil.java +++ b/src/java/org/apache/poi/ss/util/WorkbookUtil.java @@ -124,6 +124,7 @@ public class WorkbookUtil { *

* * @param sheetName the name to validate + * @throws IllegalArgumentException if validation fails */ public static void validateSheetName(String sheetName) { if (sheetName == null) { @@ -160,6 +161,15 @@ public class WorkbookUtil { } + /** + * Validates sheet state + * + * @param state the state to validate + * @throws IllegalArgumentException if state is not one of + * {@link Workbook#SHEET_STATE_VISIBLE}, + * {@link Workbook#SHEET_STATE_HIDDEN} or + * {@link Workbook#SHEET_STATE_VERY_HIDDEN} + */ public static void validateSheetState(int state) { switch(state){ case Workbook.SHEET_STATE_VISIBLE: break;