throw IllegalStateException as documented from validState()

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@983711 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Matthew Jason Benson 2010-08-09 16:22:55 +00:00
parent e51c8d6cfb
commit 441671d365
1 changed files with 1 additions and 1 deletions

View File

@ -765,7 +765,7 @@ public static <T extends CharSequence> T validIndex(T chars, int index) {
*/
public static void validState(boolean expression) {
if (expression == false) {
throw new IllegalArgumentException(DEFAULT_VALID_STATE_EX_MESSAGE);
throw new IllegalStateException(DEFAULT_VALID_STATE_EX_MESSAGE);
}
}