From 4112a026f9b150b90e0f782750070c817bbc15fd Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Mon, 27 Oct 2014 00:36:13 +0000 Subject: [PATCH] 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 --- src/java/org/apache/poi/ss/util/WorkbookUtil.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; -- 2.39.5